[gtk/wip/otte/gdk: 4/10] surface: Remove generic invalidation calls
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/gdk: 4/10] surface: Remove generic invalidation calls
- Date: Tue, 30 Mar 2021 22:37:13 +0000 (UTC)
commit baf4970bc7eaf1a814d3ab48a99c027223b4e57c
Author: Benjamin Otte <otte redhat com>
Date: Thu Mar 18 01:26:44 2021 +0100
surface: Remove generic invalidation calls
These invalidations happen with the wrong sizes and need to be redone
after compute_size() anyway, so don't do them there.
Also, the idle handler happens _after_ we've already rendered in the
frame callback and just causes an unneeded redraw.
gdk/gdksurface.c | 4 ----
1 file changed, 4 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index c55a9a8042..dad345a4c0 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2730,8 +2730,6 @@ set_is_mapped_idle (gpointer user_data)
G_SOURCE_REMOVE);
surface->is_mapped = surface->pending_is_mapped;
- if (surface->is_mapped)
- gdk_surface_invalidate_rect (surface, NULL);
g_object_notify (G_OBJECT (surface), "mapped");
@@ -2751,8 +2749,6 @@ gdk_surface_set_is_mapped (GdkSurface *surface,
was_mapped = surface->is_mapped;
surface->is_mapped = is_mapped;
- if (surface->is_mapped)
- gdk_surface_invalidate_rect (surface, NULL);
if (was_mapped != is_mapped)
g_object_notify (G_OBJECT (surface), "mapped");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]