diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c index 3faab41c76..06d1aebcc8 100644 --- a/src/video/wayland/SDL_waylandevents.c +++ b/src/video/wayland/SDL_waylandevents.c @@ -3358,6 +3358,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; }