mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +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
|
// 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,
|
||||||
|
|
Loading…
Reference in a new issue