mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
Don't set focus to NULL when clicking a surface which has no container
This commit is contained in:
parent
9253278328
commit
bcdb676abb
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
|
|||
if (new_ws != old_ws) {
|
||||
seat_set_focus(cursor->seat, cont);
|
||||
}
|
||||
} else {
|
||||
} else if (cont) {
|
||||
seat_set_focus(cursor->seat, cont);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue