From 595f3902c8249d8fff50de7ebc59cce530f3c96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 10 Aug 2018 17:10:16 +0200 Subject: [PATCH] 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. --- gdk/wayland/gdkwindow-wayland.c | 5 +++++ 1 file changed, 5 insertions(+) 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; }