summaryrefslogtreecommitdiffstats
path: root/kicker
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-04-04 16:38:02 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-04-04 16:44:17 +0200
commitb7123b6a79a1e1020aa759982d89c3476b7f361d (patch)
treea2d7c1646764f48d45867889e894a55dae7eeb0c /kicker
parentd93d359f35452a455385020712764f5472911331 (diff)
downloadtdebase-b7123b6a79a1e1020aa759982d89c3476b7f361d.tar.gz
tdebase-b7123b6a79a1e1020aa759982d89c3476b7f361d.zip
Fix applications invisible on taskbar with xinerama
This resolves Bug 1429 (cherry picked from commit 42f6f23d4b06e6abbf794298ff17d15128e1c5e9)
Diffstat (limited to 'kicker')
-rw-r--r--kicker/taskbar/taskbar.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kicker/taskbar/taskbar.cpp b/kicker/taskbar/taskbar.cpp
index 1a156930d..b13760c1f 100644
--- a/kicker/taskbar/taskbar.cpp
+++ b/kicker/taskbar/taskbar.cpp
@@ -244,16 +244,16 @@ void TaskBar::configure()
m_currentScreen = -1; // Show all screens or re-get our screen
m_showOnlyCurrentScreen = (TaskBarSettings::showCurrentScreenOnly() &&
TQApplication::desktop()->isVirtualDesktop() &&
- TQApplication::desktop()->numScreens() > 1) || (TQApplication::desktop()->numScreens() < 2);
+ TQApplication::desktop()->numScreens() > 1);
// we need to watch geometry issues if we aren't showing windows when we
// are paying attention to the current Xinerama screen
+ // disconnect first in case we've been here before
+ // to avoid multiple connections
+ disconnect(TaskManager::the(), TQT_SIGNAL(windowChangedGeometry(Task::Ptr)),
+ this, TQT_SLOT(windowChangedGeometry(Task::Ptr)));
if (m_showOnlyCurrentScreen)
{
- // disconnect first in case we've been here before
- // to avoid multiple connections
- disconnect(TaskManager::the(), TQT_SIGNAL(windowChangedGeometry(Task::Ptr)),
- this, TQT_SLOT(windowChangedGeometry(Task::Ptr)));
connect(TaskManager::the(), TQT_SIGNAL(windowChangedGeometry(Task::Ptr)),
this, TQT_SLOT(windowChangedGeometry(Task::Ptr)));
}