From f96836b2df46e94dff52d0b26f7b6b01c4cec2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Wed, 19 Aug 2015 08:08:39 +0200 Subject: [PATCH] update SwitcherItem::screenGeometry when showing not everytime the current screen changes. a) that pollutes the geometry when the tabbox is invoked b) it's insufficient for "Active Screen follows mouse" (the default) c) less overhead (ok: "on multiscreen") BUG: 337790 CCBUG: 341531 FIXED-IN: 5.4 REVIEW: 124814 --- tabbox/switcheritem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }