cursor: Fix out-of-surface movement for unmanaged surfaces

This commit is contained in:
John Lindgren 2022-09-01 17:50:28 -04:00 committed by Consolatis
parent f7b1bc1de8
commit 7c6c018f43
6 changed files with 57 additions and 36 deletions

View file

@ -369,3 +369,11 @@ seat_set_focus_layer(struct seat *seat, struct wlr_layer_surface_v1 *layer)
seat->focused_layer = layer;
}
}
void
seat_reset_pressed(struct seat *seat)
{
seat->pressed.view = NULL;
seat->pressed.node = NULL;
seat->pressed.surface = NULL;
}