emit signal when showingDesktop changes
This commit is contained in:
parent
0e22088bf4
commit
c2a120019b
2 changed files with 4 additions and 0 deletions
|
@ -1198,6 +1198,7 @@ void Workspace::focusToNull()
|
|||
|
||||
void Workspace::setShowingDesktop(bool showing)
|
||||
{
|
||||
const bool changed = showing != showing_desktop;
|
||||
rootInfo()->setShowingDesktop(showing);
|
||||
showing_desktop = showing;
|
||||
if (Client* desk = findDesktop(true, VirtualDesktopManager::self()->current())) {
|
||||
|
@ -1206,6 +1207,8 @@ void Workspace::setShowingDesktop(bool showing)
|
|||
if (showing_desktop)
|
||||
requestFocus(desk);
|
||||
}
|
||||
if (changed)
|
||||
emit showingDesktopChanged(showing);
|
||||
}
|
||||
|
||||
void Workspace::disableGlobalShortcutsForClient(bool disable)
|
||||
|
|
|
@ -452,6 +452,7 @@ Q_SIGNALS:
|
|||
void propertyNotify(long a);
|
||||
void configChanged();
|
||||
void reinitializeCompositing();
|
||||
void showingDesktopChanged(bool showing);
|
||||
/**
|
||||
* This signels is emitted when ever the stacking order is change, ie. a window is risen
|
||||
* or lowered
|
||||
|
|
Loading…
Reference in a new issue