[gtk+] Avoid a crash in the inspector under wayland



commit b3043e429b6b3851c321643066d85ae91ad3471b
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 17 09:30:56 2015 -0500

    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.

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 2b1bcca..54305d5 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]