seat: Listen for destroy signal of pressed.surface

This commit is contained in:
John Lindgren 2022-09-13 10:55:59 -04:00
parent c8ddb0143c
commit b8c3fdaef9
6 changed files with 35 additions and 17 deletions

View file

@ -814,9 +814,7 @@ cursor_button(struct wl_listener *listener, void *data)
/* Handle _press */
if (surface) {
seat->pressed.view = view;
seat->pressed.node = node;
seat->pressed.surface = surface;
seat_set_pressed(seat, view, node, surface);
}
if (server->input_mode == LAB_INPUT_STATE_MENU) {