diff options
-rw-r--r-- | sway/border.c | 4 |
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, |