Skip to content
Snippets Groups Projects
Commit f486e2fd authored by Olivier Fourdan's avatar Olivier Fourdan :tools:
Browse files

xwayland: Remove undeeded test


xwl_seat_maybe_lock_on_hidden_cursor() checks that the value of
cursor_confinement_window is not NULL, yet there is no code path
that could lead to this.

Remove the test for cursor_confinement_window being set, it's useless.

Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
Reviewed-by: default avatarCarlos Garnacho <carlosg@gnome.org>
Reviewed-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
parent baa8d12e
No related branches found
No related tags found
1 merge request!414xwayland: Pointer contraints and locking fixes
...@@ -2823,8 +2823,7 @@ xwl_seat_maybe_lock_on_hidden_cursor(struct xwl_seat *xwl_seat) ...@@ -2823,8 +2823,7 @@ xwl_seat_maybe_lock_on_hidden_cursor(struct xwl_seat *xwl_seat)
* to implement infinite panning (eg. 3D views), lock the * to implement infinite panning (eg. 3D views), lock the
* pointer for so the relative pointer is used. * pointer for so the relative pointer is used.
*/ */
if (xwl_seat->x_cursor || if (xwl_seat->x_cursor)
!xwl_seat->cursor_confinement_window)
return FALSE; return FALSE;
if (!xwl_seat->focus_window) if (!xwl_seat->focus_window)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment