mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
Only set cursors on toplevel.
This fixes a problem where we used to set them on a native window, but we never unset it becase when the pointer moved to another native window we just set the cursor on that window. Always setting on the toplevel fixes this.
This commit is contained in:
parent
e24c9e291d
commit
ca1aeff814
@ -6575,8 +6575,10 @@ update_cursor (GdkDisplay *display)
|
||||
if (display->pointer_grab.window != NULL &&
|
||||
!is_parent_of (display->pointer_grab.window, (GdkWindow *)cursor_window))
|
||||
cursor_window = (GdkWindowObject *)display->pointer_grab.window;
|
||||
|
||||
GDK_WINDOW_IMPL_GET_IFACE (pointer_window->impl)->set_cursor ((GdkWindow *)pointer_window,
|
||||
|
||||
/* Set all cursors on toplevel, otherwise its tricky to keep track of
|
||||
* which native window has what cursor set. */
|
||||
GDK_WINDOW_IMPL_GET_IFACE (pointer_window->impl)->set_cursor (gdk_window_get_toplevel ((GdkWindow *)pointer_window),
|
||||
cursor_window->cursor);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user