diff --git a/tabbox/switcheritem.cpp b/tabbox/switcheritem.cpp index f463027ae0..47a33e5cfb 100644 --- a/tabbox/switcheritem.cpp +++ b/tabbox/switcheritem.cpp @@ -43,7 +43,6 @@ SwitcherItem::SwitcherItem(QObject *parent) } }); connect(screens(), &Screens::changed, this, &SwitcherItem::screenGeometryChanged); - connect(screens(), &Screens::currentChanged, this, &SwitcherItem::screenGeometryChanged); } SwitcherItem::~SwitcherItem() @@ -71,6 +70,8 @@ void SwitcherItem::setVisible(bool visible) if (m_visible == visible) { return; } + if (visible) + emit screenGeometryChanged(); m_visible = visible; emit visibleChanged(); }