[gtk/wip/otte/for-master: 4/11] surface: Remove generic invalidation calls
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master: 4/11] surface: Remove generic invalidation calls
- Date: Mon, 29 Mar 2021 15:06:33 +0000 (UTC)
commit aad8420a5330b0fc4e23b8effffb8e7e3311191e
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 6ad438093a..4e062cd8de 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2725,8 +2725,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");
@@ -2746,8 +2744,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]