mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 14:04:11 +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
@ -264,7 +264,7 @@ void dispatch_cursor_button(struct sway_cursor *cursor,
|
|||||||
if (new_ws != old_ws) {
|
if (new_ws != old_ws) {
|
||||||
seat_set_focus(cursor->seat, cont);
|
seat_set_focus(cursor->seat, cont);
|
||||||
}
|
}
|
||||||
} else {
|
} else if (cont) {
|
||||||
seat_set_focus(cursor->seat, cont);
|
seat_set_focus(cursor->seat, cont);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user