no longer needed as there are unix/win/mac impls of kwindowsystem now

svn path=/trunk/KDE/kdelibs/; revision=880604
This commit is contained in:
Aaron J. Seigo 2008-11-05 22:57:45 +00:00
parent 34f2f49a87
commit 1a86e5cf41

View File

@ -742,7 +742,7 @@ void Containment::setScreen(int screen)
// a screen of -1 means no associated screen. // a screen of -1 means no associated screen.
Containment *swapScreensWith(0); Containment *swapScreensWith(0);
if (d->type == DesktopContainment || d->type == CustomContainment) { if (d->type == DesktopContainment || d->type == CustomContainment) {
#ifndef Q_OS_WIN
// we want to listen to changes in work area if our screen changes // we want to listen to changes in work area if our screen changes
if (d->screen < 0 && screen > -1) { if (d->screen < 0 && screen > -1) {
connect(KWindowSystem::self(), SIGNAL(workAreaChanged()), connect(KWindowSystem::self(), SIGNAL(workAreaChanged()),
@ -751,7 +751,7 @@ void Containment::setScreen(int screen)
disconnect(KWindowSystem::self(), SIGNAL(workAreaChanged()), disconnect(KWindowSystem::self(), SIGNAL(workAreaChanged()),
this, SLOT(positionToolBox())); this, SLOT(positionToolBox()));
} }
#endif
if (screen > -1 && corona()) { if (screen > -1 && corona()) {
// sanity check to make sure someone else doesn't have this screen already! // sanity check to make sure someone else doesn't have this screen already!
Containment *currently = corona()->containmentForScreen(screen); Containment *currently = corona()->containmentForScreen(screen);