mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
separate seat get focus and seat get focus inactive
This commit is contained in:
parent
7d8f2c52aa
commit
a7d49da239
7 changed files with 30 additions and 24 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->has_focus && sway_seat_get_focus(seat, &root_container) == container) {
|
||||
if (sway_seat_get_focus(seat) == container) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue