wayland: Sanity check pointers and protocols before confining

(cherry picked from commit 875e45e70b)
This commit is contained in:
Frank Praznik committed 2023-10-29 14:28:58 -04:00
1 parent 19c3e125ba
commit 60e8ff16dc
1 file changed
+4
+4
View File
@@ -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;
}