From e880dc1c960a9b5d18c0124d323e3b88b3e3bd22 Mon Sep 17 00:00:00 2001 From: Christian Ehrlicher Date: Tue, 1 Apr 2008 16:24:15 +0000 Subject: [PATCH] at least some parts are compilable on windows svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=792579 --- containment.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/containment.cpp b/containment.cpp index 8f7d19572..1aab9b217 100644 --- a/containment.cpp +++ b/containment.cpp @@ -816,13 +816,14 @@ void Containment::setScreen(int screen) { // screen of -1 means no associated screen. if (containmentType() == DesktopContainment || containmentType() == CustomContainment) { +#ifndef Q_OS_WIN // we want to listen to changes in work area if our screen changes if (d->screen < 0 && screen > -1) { connect(KWindowSystem::self(), SIGNAL(workAreaChanged()), this, SLOT(repositionToolbox())); } else if (screen < 0) { disconnect(KWindowSystem::self(), SIGNAL(workAreaChanged()), this, SLOT(repositionToolbox())); } - +#endif if (screen > -1 && corona()) { // sanity check to make sure someone else doesn't have this screen already! Containment* currently = corona()->containmentForScreen(screen);