[gtk/wip/matthiasc/popup5: 89/187] surface: Small simplification
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 89/187] surface: Small simplification
- Date: Thu, 23 May 2019 11:01:02 +0000 (UTC)
commit d2715abf5d136a9216d5d9d4c69e87b7d1c5d3ce
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Mar 24 16:30:32 2019 -0400
surface: Small simplification
No more special-casing of state setting.
gdk/gdksurface.c | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 388c6110c1..2e10fec1b1 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -4182,20 +4182,7 @@ gdk_surface_set_state (GdkSurface *surface,
_gdk_surface_update_viewable (surface);
- /* We only really send the event to toplevels, since
- * all the surface states don't apply to non-toplevels.
- * Non-toplevels do use the GDK_SURFACE_STATE_WITHDRAWN flag
- * internally so we needed to update surface->state.
- */
- switch (surface->surface_type)
- {
- case GDK_SURFACE_TOPLEVEL:
- case GDK_SURFACE_TEMP: /* ? */
- g_object_notify_by_pspec (G_OBJECT (surface), properties[PROP_STATE]);
- break;
- default:
- break;
- }
+ g_object_notify_by_pspec (G_OBJECT (surface), properties[PROP_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]