Commit 2c002fe9 authored by Christian Rauch's avatar Christian Rauch Committed by Christian Rauch
Browse files

xwayland: prevent pointer_grab NULL pointer access

parent 6b767cdf
Pipeline #307990 passed with stages
in 3 minutes and 35 seconds
......@@ -2680,10 +2680,10 @@ xwl_pointer_warp_emulator_maybe_lock(struct xwl_pointer_warp_emulator *warp_emul
return;
/*
* If there is no grab, and the window doesn't have pointer focus, ignore
* If there is no grab or the window doesn't have pointer focus, ignore
* the warp, as under Wayland it won't receive input anyway.
*/
if (!pointer_grab && xwl_seat->focus_window != xwl_window)
if (!pointer_grab || xwl_seat->focus_window != xwl_window)
return;
/*
......
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