sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 27066c6328fc80ef573bfb856f6df451cdd4262e
parent 70f0099918587483ca523bd11c309c046fea037c
Author: Mikkel Oscar Lyderik <mikkeloscar@gmail.com>
Date:   Wed, 27 Apr 2016 10:32:47 +0200

Only check tabbed_stacked_parent for focused windows

Diffstat:
Msway/border.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sway/border.c b/sway/border.c @@ -315,8 +315,8 @@ void update_view_border(swayc_t *view) { // for tabbed/stacked layouts the focused view has to draw all the // titlebars of the hidden views. - swayc_t *p = swayc_tabbed_stacked_parent(view); - if (p && view->parent->focused == view) { + swayc_t *p = NULL; + if (view->parent->focused == view && (p = swayc_tabbed_stacked_parent(view))) { struct wlc_geometry g = { .origin = { .x = p->x,