summaryrefslogtreecommitdiff
path: root/gdk/broadway/gdkdnd-broadway.c
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2016-04-26 15:31:33 +0800
committerJonas Ådahl <jadahl@gmail.com>2016-04-26 23:03:24 +0800
commit1a4f000f3b2a3289c6bcd30b7ce259c1686ef169 (patch)
treec53c46c41b69be65b39738605a8d74ae096f72e9 /gdk/broadway/gdkdnd-broadway.c
parentf27dd214267b5b907411cefb85350acfbb26ac77 (diff)
downloadgtk+-1a4f000f3b2a3289c6bcd30b7ce259c1686ef169.tar.gz
gdk/dnd: Don't use default display when getting cursor
Always associate a drag context with a GdkDisplay and use that when getting a cursor for a given action. If we don't do this, dragging on a window that doesn't use the default display will make us use cursors from the wrong display. https://bugzilla.gnome.org/show_bug.cgi?id=765565
Diffstat (limited to 'gdk/broadway/gdkdnd-broadway.c')
-rw-r--r--gdk/broadway/gdkdnd-broadway.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/broadway/gdkdnd-broadway.c b/gdk/broadway/gdkdnd-broadway.c
index 042a0cd65b..7c5fffeb6a 100644
--- a/gdk/broadway/gdkdnd-broadway.c
+++ b/gdk/broadway/gdkdnd-broadway.c
@@ -98,6 +98,7 @@ _gdk_broadway_window_drag_begin (GdkWindow *window,
new_context = g_object_new (GDK_TYPE_BROADWAY_DRAG_CONTEXT,
NULL);
+ new_context->display = gdk_window_get_display (window);
return new_context;
}