mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 01:41:30 +00:00
Only check tabbed_stacked_parent for focused windows
This commit is contained in:
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
|
||||
// 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