[gtk/wip/matthiasc/popup5: 69/75] wayland: Use popup parents
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 69/75] wayland: Use popup parents
- Date: Mon, 29 Apr 2019 19:47:44 +0000 (UTC)
commit f7caae2fad12250aa9264d708b403d81838413f6
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Apr 22 15:21:45 2019 +0000
wayland: Use popup parents
Make the Wayland move-to-rect implementation
use popup parents.
gdk/wayland/gdksurface-wayland.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gdk/wayland/gdksurface-wayland.c b/gdk/wayland/gdksurface-wayland.c
index cd5b55bb7d..f42dffd2f8 100644
--- a/gdk/wayland/gdksurface-wayland.c
+++ b/gdk/wayland/gdksurface-wayland.c
@@ -553,6 +553,8 @@ _gdk_wayland_display_create_surface (GdkDisplay *display,
if (parent == NULL)
display_wayland->toplevels = g_list_prepend (display_wayland->toplevels, surface);
+ impl->transient_for = parent;
+
gdk_wayland_surface_create_surface (surface);
g_signal_connect (frame_clock, "before-paint", G_CALLBACK (on_frame_clock_before_paint), surface);
@@ -2297,6 +2299,9 @@ should_map_as_popup (GdkSurface *surface)
{
GdkWaylandSurface *impl = GDK_WAYLAND_SURFACE (surface);
+ if (GDK_SURFACE_TYPE (surface) == GDK_SURFACE_POPUP)
+ return TRUE;
+
/* Ideally, popup would be temp surfaces with a parent and grab */
if (GDK_SURFACE_TYPE (surface) == GDK_SURFACE_TEMP)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]