diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-02-07 18:17:57 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-02-07 18:17:57 -0500 |
commit | a7d49da23956c245f0e6b8f7dc9cb532eb14c4b9 (patch) | |
tree | 83f3d132a16e69deb4dbbdb8b4f8d1cda5964c27 /sway/input/input-manager.c | |
parent | make index_child static (diff) | |
download | sway-a7d49da23956c245f0e6b8f7dc9cb532eb14c4b9.tar.gz sway-a7d49da23956c245f0e6b8f7dc9cb532eb14c4b9.tar.zst sway-a7d49da23956c245f0e6b8f7dc9cb532eb14c4b9.zip |
separate seat get focus and seat get focus inactive
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r-- | sway/input/input-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index a406636e..90eb8cf6 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c | |||
@@ -282,7 +282,7 @@ bool sway_input_manager_has_focus(struct sway_input_manager *input, | |||
282 | swayc_t *container) { | 282 | swayc_t *container) { |
283 | struct sway_seat *seat = NULL; | 283 | struct sway_seat *seat = NULL; |
284 | wl_list_for_each(seat, &input->seats, link) { | 284 | wl_list_for_each(seat, &input->seats, link) { |
285 | if (seat->has_focus && sway_seat_get_focus(seat, &root_container) == container) { | 285 | if (sway_seat_get_focus(seat) == container) { |
286 | return true; | 286 | return true; |
287 | } | 287 | } |
288 | } | 288 | } |