mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
wayland: Commit the confinement region upon creation
This may prevent the pointer from escaping small regions if moving quickly.
This commit is contained in:
@@ -3366,6 +3366,9 @@ bool Wayland_input_confine_pointer(struct SDL_WaylandInput *input, SDL_Window *w
|
||||
wl_region_destroy(confine_rect);
|
||||
}
|
||||
|
||||
// Commit the double-buffered confinement region.
|
||||
wl_surface_commit(w->surface);
|
||||
|
||||
w->confined_pointer = confined_pointer;
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user