Send KIPC:BackgroundChanged only when desktop is not common (part for

#33348). Still no perfect solution for "sticky transparent Konsole" problem.

svn path=/trunk/kdebase/kwin/; revision=117021
This commit is contained in:
Stephan Binner 2001-10-09 06:53:26 +00:00
parent 58cd761e24
commit 82c0178a80

View file

@ -2404,6 +2404,17 @@ 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 );