forked from AuroraMiddleware/gtk
Avoid a crash in the inspector under wayland
The Wayland-specific popover code in GtkWindow was not doing the right thing with the separate display connection we use for the inspector.
This commit is contained in:
parent
f4510c93b7
commit
b3043e429b
@ -6326,7 +6326,7 @@ popover_realize (GtkWidget *widget,
|
||||
if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
|
||||
{
|
||||
attributes.window_type = GDK_WINDOW_SUBSURFACE;
|
||||
parent_window = gdk_screen_get_root_window (gtk_widget_get_screen (widget));
|
||||
parent_window = gdk_screen_get_root_window (gtk_widget_get_screen (GTK_WIDGET (window)));
|
||||
}
|
||||
else
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user