emit signal when showingDesktop changes

This commit is contained in:
Thomas Lübking 2015-03-29 00:08:32 +01:00
parent 0e22088bf4
commit c2a120019b
2 changed files with 4 additions and 0 deletions

View file

@ -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)

View file

@ -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