summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2018-08-10 17:10:16 +0200
committerJonas Ådahl <jadahl@gmail.com>2018-08-10 18:32:54 +0200
commit595f3902c8249d8fff50de7ebc59cce530f3c96c (patch)
treef7bc14c770b081dc1f4aff000dfd5b24b64f436c
parent1ed53199c56cf8927efe417c05ab4424f32b30e5 (diff)
downloadgtk+-595f3902c8249d8fff50de7ebc59cce530f3c96c.tar.gz
gdk/wayland: Always map windows 'moved-to-rect' as popups
Only popups can make use of the move-to-rect semantics so it makes no sense to try anything other surface type.
-rw-r--r--gdk/wayland/gdkwindow-wayland.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index fa3e0e48a0..0212deeb15 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1877,6 +1877,8 @@ gdk_wayland_window_handle_configure_popup (GdkWindow *window,
&flipped_x,
&flipped_y);
+ impl->position_method = POSITION_METHOD_MOVE_TO_RECT;
+
g_signal_emit_by_name (window,
"moved-to-rect",
&flipped_rect,
@@ -2806,6 +2808,9 @@ should_map_as_popup (GdkWindow *window)
break;
}
+ if (impl->position_method == POSITION_METHOD_MOVE_TO_RECT)
+ return TRUE;
+
return FALSE;
}