gnucash maint: Bug 797684 - GTK_DEBUG=interactive - Bail out - gdk_window_set_cursor_internal
John Ralls
jralls at code.gnucash.org
Wed Apr 15 17:39:50 EDT 2020
Updated via https://github.com/Gnucash/gnucash/commit/94fe0f80 (commit)
from https://github.com/Gnucash/gnucash/commit/4cb2e4d1 (commit)
commit 94fe0f803e99972fda3d330e8768ae349d58b012
Author: John Ralls <jralls at ceridwen.us>
Date: Wed Apr 15 14:38:07 2020 -0700
Bug 797684 - GTK_DEBUG=interactive - Bail out - gdk_window_set_cursor_internal
We can't assume that the window is on the default display.
diff --git a/gnucash/gnome-utils/cursors.c b/gnucash/gnome-utils/cursors.c
index 360a630ec..e787a0525 100644
--- a/gnucash/gnome-utils/cursors.c
+++ b/gnucash/gnome-utils/cursors.c
@@ -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);
Summary of changes:
gnucash/gnome-utils/cursors.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list