src/cursor.c: Keep sending motion events for out-of-layer-surface

Previously, motion events for a cursor which had been pressed on a surface
and then moved out of the surface were only sent for XDG and X11 surfaces.

This patch includes layer surfaces as well.

Fixes #483
This commit is contained in:
Consolatis 2022-08-14 14:40:56 +02:00 committed by Johan Malm
parent 8e6d37772e
commit 921c877f79
3 changed files with 36 additions and 21 deletions

View file

@ -145,6 +145,10 @@ unmap(struct lab_layer_surface *layer)
if (seat->focused_layer == layer->scene_layer_surface->layer_surface) {
seat_set_focus_layer(seat, NULL);
}
if (seat->pressed.surface == layer->scene_layer_surface->layer_surface->surface) {
seat->pressed.node = NULL;
seat->pressed.surface = NULL;
}
}
static void