mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
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:
parent
8e6d37772e
commit
921c877f79
3 changed files with 36 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue