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.
This commit is contained in:
Jasper St. Pierre 2014-10-27 21:21:00 -07:00
parent 52e3b88382
commit 5f980cd8de

View File

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