mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
Don't set focus to NULL when clicking a surface which has no container
This commit is contained in:
parent
9253278328
commit
bcdb676abb
|
@ -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