diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-04-26 23:48:13 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-04-29 02:37:58 +0000 |
commit | f42175b55f4c98f3b3427cd6756f63f5f6a3523b (patch) | |
tree | 9bffc8c88e52489f5b828f6cda8456ef1888265e | |
parent | 21e105e76ff95a295375777b9f72af18ac26f4f8 (diff) | |
download | gtk+-f42175b55f4c98f3b3427cd6756f63f5f6a3523b.tar.gz |
window: Set cursor on the right surface
This fixes cursors for entries in popovers.
-rw-r--r-- | gtk/gtkwindow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 5b16332bb7..a728dbebc3 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -10078,6 +10078,9 @@ update_cursor (GtkRoot *toplevel, GtkWidget *target) { GdkCursor *cursor = NULL; + GdkSurface *surface; + + surface = gtk_widget_get_surface (target); if (grab_widget && !gtk_widget_is_ancestor (target, grab_widget)) { @@ -10105,8 +10108,7 @@ update_cursor (GtkRoot *toplevel, } } - gdk_surface_set_device_cursor (gtk_widget_get_surface (GTK_WIDGET (toplevel)), - device, cursor); + gdk_surface_set_device_cursor (surface, device, cursor); } void |