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/commands.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/commands.c')
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 871b3078..b9399dec 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -2315,7 +2315,7 @@ static struct cmd_results *_do_split(int argc, char **argv, int layout) { | |||
2315 | } | 2315 | } |
2316 | 2316 | ||
2317 | // update container title if tabbed/stacked | 2317 | // update container title if tabbed/stacked |
2318 | if (swayc_tabbed_stacked_parent(focused)) { | 2318 | if (swayc_tabbed_stacked_ancestor(focused)) { |
2319 | update_view_border(focused); | 2319 | update_view_border(focused); |
2320 | swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT); | 2320 | swayc_t *output = swayc_parent_by_type(focused, C_OUTPUT); |
2321 | // schedule render to make changes take effect right away, | 2321 | // schedule render to make changes take effect right away, |