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/border.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/border.c')
-rw-r--r-- | sway/border.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/border.c b/sway/border.c index 7600351a..9bc25816 100644 --- a/sway/border.c +++ b/sway/border.c | |||
@@ -318,7 +318,7 @@ void update_view_border(swayc_t *view) { | |||
318 | // for tabbed/stacked layouts the focused view has to draw all the | 318 | // for tabbed/stacked layouts the focused view has to draw all the |
319 | // titlebars of the hidden views. | 319 | // titlebars of the hidden views. |
320 | swayc_t *p = NULL; | 320 | swayc_t *p = NULL; |
321 | if (view->parent->focused == view && (p = swayc_tabbed_stacked_parent(view))) { | 321 | if (view->parent->focused == view && (p = swayc_tabbed_stacked_ancestor(view))) { |
322 | struct wlc_geometry g = { | 322 | struct wlc_geometry g = { |
323 | .origin = { | 323 | .origin = { |
324 | .x = p->x, | 324 | .x = p->x, |