Skip to content

Commit

Permalink
wayland: Sanity check pointers and protocols before confining
Browse files Browse the repository at this point in the history
(cherry picked from commit 875e45e)
  • Loading branch information
Kontrabant committed Oct 29, 2023
1 parent 19c3e12 commit 60e8ff1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video/wayland/SDL_waylandevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -2581,6 +2581,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;
}
Expand Down

0 comments on commit 60e8ff1

Please sign in to comment.