mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
4cb2e4d144
commit
94fe0f803e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user