Clear input regions if they're ignored

This commit is contained in:
Kirill Primak 2023-06-06 13:28:31 +03:00
parent 4c9eb6839d
commit 2acc74a3db
3 changed files with 4 additions and 3 deletions

View file

@ -71,6 +71,7 @@ struct wlr_seat_client *wlr_seat_client_from_pointer_resource(
}
static void pointer_cursor_surface_handle_commit(struct wlr_surface *surface) {
pixman_region32_clear(&surface->input_region);
if (wlr_surface_has_buffer(surface)) {
wlr_surface_map(surface);
}