diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-04-07 16:06:36 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-04-07 16:06:36 -0400 |
commit | c0f9ee7bd1fc70672dcf64a19c9fbbf5a80b12b0 (patch) | |
tree | 90e2f7261e5e9191bea374459a9b5c7fc0acedf3 /sway/tree/layout.c | |
parent | Merge pull request #1767 from emersion/fix-dmenu (diff) | |
download | sway-c0f9ee7bd1fc70672dcf64a19c9fbbf5a80b12b0.tar.gz sway-c0f9ee7bd1fc70672dcf64a19c9fbbf5a80b12b0.tar.zst sway-c0f9ee7bd1fc70672dcf64a19c9fbbf5a80b12b0.zip |
seat get focus inactive view
Diffstat (limited to 'sway/tree/layout.c')
-rw-r--r-- | sway/tree/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index e81facc6..ce4457b1 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -872,7 +872,7 @@ struct sway_container *container_get_in_direction( | |||
872 | } | 872 | } |
873 | if (next->children && next->children->length) { | 873 | if (next->children && next->children->length) { |
874 | // TODO consider floating children as well | 874 | // TODO consider floating children as well |
875 | return seat_get_focus_by_type(seat, next, C_VIEW); | 875 | return seat_get_focus_inactive_view(seat, next); |
876 | } else { | 876 | } else { |
877 | return next; | 877 | return next; |
878 | } | 878 | } |
@@ -910,7 +910,7 @@ struct sway_container *container_get_in_direction( | |||
910 | wlr_log(L_DEBUG, | 910 | wlr_log(L_DEBUG, |
911 | "cont %d-%p dir %i sibling %d: %p", idx, | 911 | "cont %d-%p dir %i sibling %d: %p", idx, |
912 | container, dir, desired, desired_con); | 912 | container, dir, desired, desired_con); |
913 | struct sway_container *next = seat_get_focus_by_type(seat, desired_con, C_VIEW); | 913 | struct sway_container *next = seat_get_focus_inactive_view(seat, desired_con); |
914 | return next; | 914 | return next; |
915 | } | 915 | } |
916 | } | 916 | } |