forward showingDesktop signal to effects

icc-effect-5.14.5
Thomas Lübking 2015-03-29 00:12:21 +01:00
parent c2a120019b
commit 4a9b56d950
2 changed files with 9 additions and 0 deletions

View File

@ -217,6 +217,8 @@ EffectsHandlerImpl::EffectsHandlerImpl(Compositor *compositor, Scene *scene)
Workspace *ws = Workspace::self();
VirtualDesktopManager *vds = VirtualDesktopManager::self();
connect(ws, &Workspace::showingDesktopChanged,
this, &EffectsHandlerImpl::showingDesktopChanged);
connect(ws, &Workspace::currentDesktopChanged, this,
[this](int old, Client *c) {
const int newDesktop = VirtualDesktopManager::self()->current();

View File

@ -1125,6 +1125,13 @@ Q_SIGNALS:
* @since 5.0
**/
void numberScreensChanged();
/**
* Signal emitted when the desktop showing ("dashboard") state changed
* The desktop is risen to the keepAbove layer, you may want to elevate
* windows or such.
* @since 5.3
**/
void showingDesktopChanged(bool);
/**
* Signal emitted when a new window has been added to the Workspace.
* @param w The added window