Commit f486e2fd authored by Olivier Fourdan's avatar Olivier Fourdan
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: Carlos Garnacho's avatarCarlos Garnacho <carlosg@gnome.org>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent baa8d12e
...@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment