wayland: Sanity check pointers and protocols before confining
parent
0e87b71d08
commit
875e45e70b
|
@ -2902,6 +2902,10 @@ static void lock_pointer_to_window(SDL_Window *window,
|
||||||
SDL_VideoData *d = input->display;
|
SDL_VideoData *d = input->display;
|
||||||
struct zwp_locked_pointer_v1 *locked_pointer;
|
struct zwp_locked_pointer_v1 *locked_pointer;
|
||||||
|
|
||||||
|
if (!d->pointer_constraints || !input->pointer) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (w->locked_pointer) {
|
if (w->locked_pointer) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue