diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-03-24 16:30:32 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-03-26 19:18:40 -0400 |
commit | 9a8871a78915ac65b4ba869f0ad1e9f33f8693c3 (patch) | |
tree | 471bd07086491939ea479e7f5b5983727adc0033 | |
parent | 1d5e798ddd71611ed15ebb4a232fcb64521270d3 (diff) | |
download | gtk+-9a8871a78915ac65b4ba869f0ad1e9f33f8693c3.tar.gz |
surface: Small simplification
No more special-casing of state setting.
-rw-r--r-- | gdk/gdksurface.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c index 93b2393b32..333001fff5 100644 --- a/gdk/gdksurface.c +++ b/gdk/gdksurface.c @@ -4314,20 +4314,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]); |