mirror of
https://github.com/swaywm/sway
synced 2024-11-18 19:03:59 +01: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
|
// 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 New Issue
Block a user