mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
seat: Listen for destroy signal of pressed.surface
This commit is contained in:
parent
c8ddb0143c
commit
b8c3fdaef9
6 changed files with 35 additions and 17 deletions
|
|
@ -815,11 +815,6 @@ view_destroy(struct view *view)
|
|||
need_cursor_update = true;
|
||||
}
|
||||
|
||||
if (server->seat.pressed.view == view) {
|
||||
/* Mouse was pressed on surface and is still pressed */
|
||||
seat_reset_pressed(&server->seat);
|
||||
}
|
||||
|
||||
if (server->focused_view == view) {
|
||||
server->focused_view = NULL;
|
||||
need_cursor_update = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue