diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2018-08-10 17:10:16 +0200 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2018-08-10 18:32:54 +0200 |
commit | 595f3902c8249d8fff50de7ebc59cce530f3c96c (patch) | |
tree | f7bc14c770b081dc1f4aff000dfd5b24b64f436c | |
parent | 1ed53199c56cf8927efe417c05ab4424f32b30e5 (diff) | |
download | gtk+-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.c | 5 |
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; } |