[gtk/present-toplevel-2: 134/178] surface: Only notify state on toplevels
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/present-toplevel-2: 134/178] surface: Only notify state on toplevels
- Date: Tue, 10 Mar 2020 01:21:12 +0000 (UTC)
commit 01d769d0dedd26ac883aa05aff8a1f4ce2a204b4
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 7 14:36:55 2020 -0800
surface: Only notify state on toplevels
Other kinds of surfaces don't have this property.
gdk/gdksurface.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 74ee43b712..96ba0eab23 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -982,7 +982,8 @@ _gdk_surface_destroy_hierarchy (GdkSurface *surface,
surface_remove_from_pointer_info (surface, surface->display);
- g_object_notify (G_OBJECT (surface), "state");
+ if (GDK_IS_TOPLEVEL (surface))
+ g_object_notify (G_OBJECT (surface), "state");
g_object_notify_by_pspec (G_OBJECT (surface), properties[PROP_MAPPED]);
}
@@ -3182,7 +3183,8 @@ gdk_surface_set_state (GdkSurface *surface,
_gdk_surface_update_viewable (surface);
- g_object_notify (G_OBJECT (surface), "state");
+ if (GDK_IS_TOPLEVEL (surface))
+ g_object_notify (G_OBJECT (surface), "state");
if (was_mapped != mapped)
g_object_notify_by_pspec (G_OBJECT (surface), properties[PROP_MAPPED]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]