From 5f980cd8ded9cc36148862cb39c636e6a0d2f0c6 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 27 Oct 2014 21:21:00 -0700 Subject: [PATCH] gtkwindow: Use gdk_cursor_new_for_display Otherwise, this crashes the inspector, since it now uses multi-display technology, and on Wayland, resources like the cursor are client-private. --- gtk/gtkwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 08afd8f58c..0b0365fa53 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -6991,7 +6991,7 @@ gtk_window_realize (GtkWidget *widget) for (i = 0; i < 8; i++) { - attributes.cursor = gdk_cursor_new (cursor_type[i]); + attributes.cursor = gdk_cursor_new_for_display (gtk_widget_get_display (widget), cursor_type[i]); priv->border_window[i] = gdk_window_new (gdk_window, &attributes, attributes_mask); g_object_unref (attributes.cursor);