Bug 797684 - GTK_DEBUG=interactive - Bail out - gdk_window_set_cursor_internal

We can't assume that the window is on the default display.
This commit is contained in:
John Ralls 2020-04-15 14:38:07 -07:00
parent 4cb2e4d144
commit 94fe0f803e

View File

@ -50,7 +50,8 @@ gnc_ui_set_cursor (GdkWindow *win, GNCCursorType type, gboolean update_now)
return;
if (type != GNC_CURSOR_NORMAL)
cursor = gdk_cursor_new_for_display (gdk_display_get_default (), (GdkCursorType)type);
cursor = gdk_cursor_new_for_display (gdk_window_get_display (win),
(GdkCursorType)type);
gdk_window_set_cursor (win, cursor);