Commit 5f980cd8 authored by Jasper St. Pierre's avatar Jasper St. Pierre

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.
parent 52e3b883
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment