Skip to content

Commit 3f05937

Browse files
committed
wayland: Commit the confinement region upon creation
This may prevent the pointer from escaping small regions if moving quickly. (cherry picked from commit 6b1d6bf)
1 parent 30a6d01 commit 3f05937

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/video/wayland/SDL_waylandevents.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3358,6 +3358,9 @@ bool Wayland_input_confine_pointer(struct SDL_WaylandInput *input, SDL_Window *w
33583358
wl_region_destroy(confine_rect);
33593359
}
33603360

3361+
// Commit the double-buffered confinement region.
3362+
wl_surface_commit(w->surface);
3363+
33613364
w->confined_pointer = confined_pointer;
33623365
return true;
33633366
}

0 commit comments

Comments
 (0)