|
Lines 256-271
void TaskBar::configure()
Link Here
|
| 256 |
m_currentScreen = -1; // Show all screens or re-get our screen |
256 |
m_currentScreen = -1; // Show all screens or re-get our screen |
| 257 |
m_showOnlyCurrentScreen = (m_settingsObject->showCurrentScreenOnly() && |
257 |
m_showOnlyCurrentScreen = (m_settingsObject->showCurrentScreenOnly() && |
| 258 |
TQApplication::desktop()->isVirtualDesktop() && |
258 |
TQApplication::desktop()->isVirtualDesktop() && |
| 259 |
TQApplication::desktop()->numScreens() > 1) || (TQApplication::desktop()->numScreens() < 2); |
259 |
TQApplication::desktop()->numScreens() > 1); |
| 260 |
|
260 |
|
| 261 |
// we need to watch geometry issues if we aren't showing windows when we |
261 |
// we need to watch geometry issues if we aren't showing windows when we |
| 262 |
// are paying attention to the current Xinerama screen |
262 |
// are paying attention to the current Xinerama screen |
|
|
263 |
// disconnect first in case we've been here before |
| 264 |
// to avoid multiple connections |
| 265 |
disconnect(TaskManager::the(), TQT_SIGNAL(windowChangedGeometry(Task::Ptr)), |
| 266 |
this, TQT_SLOT(windowChangedGeometry(Task::Ptr))); |
| 263 |
if (m_showOnlyCurrentScreen) |
267 |
if (m_showOnlyCurrentScreen) |
| 264 |
{ |
268 |
{ |
| 265 |
// disconnect first in case we've been here before |
|
|
| 266 |
// to avoid multiple connections |
| 267 |
disconnect(TaskManager::the(), TQT_SIGNAL(windowChangedGeometry(Task::Ptr)), |
| 268 |
this, TQT_SLOT(windowChangedGeometry(Task::Ptr))); |
| 269 |
connect(TaskManager::the(), TQT_SIGNAL(windowChangedGeometry(Task::Ptr)), |
269 |
connect(TaskManager::the(), TQT_SIGNAL(windowChangedGeometry(Task::Ptr)), |
| 270 |
this, TQT_SLOT(windowChangedGeometry(Task::Ptr))); |
270 |
this, TQT_SLOT(windowChangedGeometry(Task::Ptr))); |
| 271 |
} |
271 |
} |