diff options
author | D.B <thejan.2009@gmail.com> | 2016-07-16 15:11:08 +0200 |
---|---|---|
committer | D.B <thejan.2009@gmail.com> | 2016-07-16 15:34:43 +0200 |
commit | ad7605675ef5d1fc99653e80c3c846429abfda25 (patch) | |
tree | 001033de86cb34fca09837a643a0818f299cdf3e /sway/focus.c | |
parent | Fix warning in window.c (diff) | |
download | sway-ad7605675ef5d1fc99653e80c3c846429abfda25.tar.gz sway-ad7605675ef5d1fc99653e80c3c846429abfda25.tar.zst sway-ad7605675ef5d1fc99653e80c3c846429abfda25.zip |
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c index 0d9ee7e3..ff064b72 100644 --- a/sway/focus.c +++ b/sway/focus.c | |||
@@ -152,7 +152,7 @@ bool set_focused_container(swayc_t *c) { | |||
152 | } | 152 | } |
153 | 153 | ||
154 | // rearrange if parent container is tabbed/stacked | 154 | // rearrange if parent container is tabbed/stacked |
155 | swayc_t *parent = swayc_tabbed_stacked_parent(p); | 155 | swayc_t *parent = swayc_tabbed_stacked_ancestor(p); |
156 | if (parent != NULL) { | 156 | if (parent != NULL) { |
157 | arrange_windows(parent, -1, -1); | 157 | arrange_windows(parent, -1, -1); |
158 | } | 158 | } |