Revoked KIPC message addition, will use kWinModule::currentDesktopChanged(int).

svn path=/trunk/kdebase/kwin/; revision=117871
This commit is contained in:
Stephan Binner 2001-10-14 13:04:49 +00:00
parent 7962136939
commit 9b12dc1a16

View file

@ -18,7 +18,6 @@ Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
#include <qregexp.h>
#include <qclipboard.h>
#include <kapp.h>
#include <kipc.h>
#include <dcopclient.h>
#include <kprocess.h>
#include <kiconloader.h>
@ -2405,18 +2404,6 @@ void Workspace::setCurrentDesktop( int new_desktop ){
}
current_desktop = new_desktop;
// code from bgsettings.cc to determine if notification is necessary
int screen_number = DefaultScreen(qt_xdisplay());
QCString configname;
if (screen_number == 0)
configname = "kdesktoprc";
else
configname.sprintf("kdesktop-screen-%drc", screen_number);
KConfig cfg(configname);
cfg.setGroup("Background Common");
if (!cfg.readBoolEntry("CommonDesktop", true))
KIPC::sendMessageAll(KIPC::BackgroundChanged, current_desktop);
rootInfo->setCurrentDesktop( current_desktop );
// restore the focus on this desktop