mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
wayland: Use popup parents
Make the Wayland move-to-rect implementation use popup parents.
This commit is contained in:
parent
1661615fef
commit
99783c7fb7
@ -549,6 +549,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);
|
||||
@ -2293,6 +2295,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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user