mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
basic focus overhaul
This commit is contained in:
parent
b28602aa74
commit
5151502298
12 changed files with 224 additions and 39 deletions
|
|
@ -282,7 +282,7 @@ bool sway_input_manager_has_focus(struct sway_input_manager *input,
|
|||
swayc_t *container) {
|
||||
struct sway_seat *seat = NULL;
|
||||
wl_list_for_each(seat, &input->seats, link) {
|
||||
if (seat->focus == container) {
|
||||
if (seat->has_focus && sway_seat_get_focus(seat, &root_container) == container) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue