[gtk/gtk-3-24: 2/4] gdk/wayland: Always map windows 'moved-to-rect' as popups
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 2/4] gdk/wayland: Always map windows 'moved-to-rect' as popups
- Date: Wed, 15 Aug 2018 22:04:55 +0000 (UTC)
commit 595f3902c8249d8fff50de7ebc59cce530f3c96c
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Aug 10 17:10:16 2018 +0200
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]