mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
surface: Store popup parent
Store popup parents separately from transient-for parents, since these are separate concepts with different behaviors. And we need the parent in the frontend, so we can use it in the fallback move-to-rect implementation.
This commit is contained in:
parent
33c6dff881
commit
9af6d7f733
@ -208,6 +208,7 @@ _gdk_broadway_display_create_surface (GdkDisplay *display,
|
||||
g_object_unref (frame_clock);
|
||||
|
||||
surface->surface_type = surface_type;
|
||||
surface->parent = parent;
|
||||
surface->x = x;
|
||||
surface->y = y;
|
||||
surface->width = width;
|
||||
|
@ -32,7 +32,8 @@ struct _GdkSurface
|
||||
|
||||
GdkDisplay *display;
|
||||
|
||||
GdkSurface *transient_for;
|
||||
GdkSurface *transient_for; /* for toplevels */
|
||||
GdkSurface *parent; /* for popups */
|
||||
|
||||
gpointer widget;
|
||||
|
||||
|
@ -531,6 +531,7 @@ _gdk_wayland_display_create_surface (GdkDisplay *display,
|
||||
}
|
||||
|
||||
surface->surface_type = surface_type;
|
||||
surface->parent = parent;
|
||||
surface->x = x;
|
||||
surface->y = y;
|
||||
surface->width = width;
|
||||
|
@ -811,6 +811,7 @@ _gdk_x11_display_create_surface (GdkDisplay *display,
|
||||
g_object_unref (frame_clock);
|
||||
|
||||
surface->surface_type = surface_type;
|
||||
surface->parent = parent;
|
||||
surface->x = x;
|
||||
surface->y = y;
|
||||
surface->width = width;
|
||||
|
Loading…
Reference in New Issue
Block a user