summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-04-27 10:32:47 +0200
committerFurkan Sahin <furkan-dev@proton.me>2016-04-27 10:32:47 +0200
commit683126b155807b26bcd2c16ea70f738961772a69 (patch)
treece19ce179d1cd5d0e03687cc579bef5fe6c84ff0
parentad4d5bad961450c99398e3a5d39dd6d9b901c940 (diff)
Only check tabbed_stacked_parent for focused windows
-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) {
// 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,