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:
parent
58cd761e24
commit
82c0178a80
1 changed files with 12 additions and 1 deletions
|
@ -2404,6 +2404,17 @@ 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);
|
KIPC::sendMessageAll(KIPC::BackgroundChanged, current_desktop);
|
||||||
|
|
||||||
rootInfo->setCurrentDesktop( current_desktop );
|
rootInfo->setCurrentDesktop( current_desktop );
|
||||||
|
|
Loading…
Reference in a new issue