1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 23:14:03 +01:00

Only check tabbed_stacked_parent for focused windows

This commit is contained in:
Mikkel Oscar Lyderik 2016-04-27 10:32:47 +02:00
parent 70f0099918
commit 27066c6328

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