diff options
author | Matthias Clasen <mclasen@redhat.com> | 2018-07-15 14:23:54 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2018-07-15 15:10:56 -0400 |
commit | 7ca6440f4d1c6a0921cfd310e1993d0a7c8e082d (patch) | |
tree | bb9c37cc6c097a7d7935107a11ea414edf68e088 /gdk/x11/gdkdisplay-x11.c | |
parent | 1172810768c5d1d414fdd5394d039c9330aaca41 (diff) | |
download | gtk+-7ca6440f4d1c6a0921cfd310e1993d0a7c8e082d.tar.gz |
gdk: Drop map events
We are really inconsistent about generating these,
and they are not actually used in GTK+. Instead,
add a boolean GdkSurface::mapped property.
Diffstat (limited to 'gdk/x11/gdkdisplay-x11.c')
-rw-r--r-- | gdk/x11/gdkdisplay-x11.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c index 2f157d3f8a..72ead44bbb 100644 --- a/gdk/x11/gdkdisplay-x11.c +++ b/gdk/x11/gdkdisplay-x11.c @@ -848,9 +848,6 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator, g_message ("unmap notify:\t\twindow: %ld", xevent->xmap.window)); - event->any.type = GDK_UNMAP; - event->any.surface = surface; - if (surface && !is_substructure) { /* If the WM supports the _NET_WM_STATE_HIDDEN hint, we do not want to @@ -885,6 +882,8 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator, _gdk_x11_surface_grab_check_unmap (surface, xevent->xany.serial); } + return_val = FALSE; + break; case MapNotify: @@ -892,9 +891,6 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator, g_message ("map notify:\t\twindow: %ld", xevent->xmap.window)); - event->any.type = GDK_MAP; - event->any.surface = surface; - if (surface && !is_substructure) { /* Unset iconified if it was set */ @@ -907,6 +903,8 @@ gdk_x11_display_translate_event (GdkEventTranslator *translator, gdk_surface_thaw_toplevel_updates (surface); } + return_val = FALSE; + break; case ReparentNotify: |