mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-17 03:28:57 +00:00
wayland: Sanity check pointers and protocols before confining
(cherry picked from commit875e45e70b) (cherry picked from commit60e8ff16dc)
This commit is contained in:
parent
7d9595b14f
commit
746d74b140
1 changed files with 4 additions and 0 deletions
|
|
@ -2534,6 +2534,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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue