mirror of
https://github.com/swaywm/sway.git
synced 2024-12-28 07:56:31 +01:00
Only check tabbed_stacked_parent for focused windows
This commit is contained in:
parent
70f0099918
commit
27066c6328
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue