summaryrefslogtreecommitdiffstats
path: root/sway/border.c
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-27 10:32:47 +0200
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-27 11:24:28 +0200
commit27066c6328fc80ef573bfb856f6df451cdd4262e (patch)
treece19ce179d1cd5d0e03687cc579bef5fe6c84ff0 /sway/border.c
parentMerge pull request #603 from fluxchief/master (diff)
downloadsway-27066c6328fc80ef573bfb856f6df451cdd4262e.tar.gz
sway-27066c6328fc80ef573bfb856f6df451cdd4262e.tar.zst
sway-27066c6328fc80ef573bfb856f6df451cdd4262e.zip
Only check tabbed_stacked_parent for focused windows
Diffstat (limited to 'sway/border.c')
-rw-r--r--sway/border.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/border.c b/sway/border.c
index cec443f4..69807990 100644
--- a/sway/border.c
+++ b/sway/border.c
@@ -315,8 +315,8 @@ void update_view_border(swayc_t *view) {
315 315
316 // for tabbed/stacked layouts the focused view has to draw all the 316 // for tabbed/stacked layouts the focused view has to draw all the
317 // titlebars of the hidden views. 317 // titlebars of the hidden views.
318 swayc_t *p = swayc_tabbed_stacked_parent(view); 318 swayc_t *p = NULL;
319 if (p && view->parent->focused == view) { 319 if (view->parent->focused == view && (p = swayc_tabbed_stacked_parent(view))) {
320 struct wlc_geometry g = { 320 struct wlc_geometry g = {
321 .origin = { 321 .origin = {
322 .x = p->x, 322 .x = p->x,