summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdisplay-x11.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-07-15 14:23:54 -0400
committerMatthias Clasen <mclasen@redhat.com>2018-07-15 15:10:56 -0400
commit7ca6440f4d1c6a0921cfd310e1993d0a7c8e082d (patch)
treebb9c37cc6c097a7d7935107a11ea414edf68e088 /gdk/x11/gdkdisplay-x11.c
parent1172810768c5d1d414fdd5394d039c9330aaca41 (diff)
downloadgtk+-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.c10
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: