mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
wayland: Sanity check pointers and protocols before confining
This commit is contained in:
@@ -2902,6 +2902,10 @@ static void lock_pointer_to_window(SDL_Window *window,
|
||||
SDL_VideoData *d = input->display;
|
||||
struct zwp_locked_pointer_v1 *locked_pointer;
|
||||
|
||||
if (!d->pointer_constraints || !input->pointer) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (w->locked_pointer) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user