summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-07-13 01:51:17 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-07-13 01:51:17 -0500
commitcc702274d8e5da0cb606224f4d920d0beef4714c (patch)
tree40f42eaaaad6075e2b61d666fbb6fb084725ec40 /src/screen.cpp
parent254f87a94af907df630e98535662b762bd4c9ae5 (diff)
downloadunity-window-decorator-cc702274d8e5da0cb606224f4d920d0beef4714c.tar.gz
unity-window-decorator-cc702274d8e5da0cb606224f4d920d0beef4714c.tar.bz2
Add notifications for show desktop mode.
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index 4f4a5de..aa67332 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -2249,6 +2249,7 @@ CompScreen::enterShowDesktopMode ()
w->managed () && w->focus ())
{
w->setShowDesktopMode (true);
+ w->windowNotify (CompWindowNotifyEnterShowDesktopMode);
w->priv->hide ();
}
}
@@ -2282,6 +2283,7 @@ CompScreen::leaveShowDesktopMode (CompWindow *window)
return;
window->setShowDesktopMode (false);
+ window->windowNotify (CompWindowNotifyLeaveShowDesktopMode);
window->priv->show ();
/* return if some other window is still in show desktop mode */
@@ -2301,6 +2303,7 @@ CompScreen::leaveShowDesktopMode (CompWindow *window)
continue;
w->setShowDesktopMode (false);
+ w->windowNotify (CompWindowNotifyLeaveShowDesktopMode);
w->priv->show ();
}