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:
Matthias Clasen 2015-02-17 09:30:56 -05:00
parent f4510c93b7
commit b3043e429b

View File

@ -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