Revoked KIPC message addition, will use kWinModule::currentDesktopChanged(int).
svn path=/trunk/kdebase/kwin/; revision=117871
This commit is contained in:
parent
7962136939
commit
9b12dc1a16
1 changed files with 0 additions and 13 deletions
|
@ -18,7 +18,6 @@ Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
||||||
#include <qregexp.h>
|
#include <qregexp.h>
|
||||||
#include <qclipboard.h>
|
#include <qclipboard.h>
|
||||||
#include <kapp.h>
|
#include <kapp.h>
|
||||||
#include <kipc.h>
|
|
||||||
#include <dcopclient.h>
|
#include <dcopclient.h>
|
||||||
#include <kprocess.h>
|
#include <kprocess.h>
|
||||||
#include <kiconloader.h>
|
#include <kiconloader.h>
|
||||||
|
@ -2405,18 +2404,6 @@ void Workspace::setCurrentDesktop( int new_desktop ){
|
||||||
}
|
}
|
||||||
current_desktop = 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 );
|
rootInfo->setCurrentDesktop( current_desktop );
|
||||||
|
|
||||||
// restore the focus on this desktop
|
// restore the focus on this desktop
|
||||||
|
|
Loading…
Reference in a new issue