From 42f6f23d4b06e6abbf794298ff17d15128e1c5e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 4 Apr 2013 16:38:02 +0200 Subject: [PATCH] Fix applications invisible on taskbar with xinerama This resolves Bug 1429 --- kicker/taskbar/taskbar.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kicker/taskbar/taskbar.cpp b/kicker/taskbar/taskbar.cpp index 8f1f4a6ac..5f92b9fa4 100644 --- a/kicker/taskbar/taskbar.cpp +++ b/kicker/taskbar/taskbar.cpp @@ -256,16 +256,16 @@ void TaskBar::configure() m_currentScreen = -1; // Show all screens or re-get our screen m_showOnlyCurrentScreen = (m_settingsObject->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))); }