summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-03-20 05:19:53 +0100
committerDennis kasprzyk <onestone@compiz-fusion.org>2009-03-20 05:20:15 +0100
commitbc4b8257fe809b60d7224a59b2cc8eb53ece599d (patch)
tree73a3b2ac54cdf89d6a505c69e63576503805696c /src/screen.cpp
parent463254282b62b36f8ce0e4777f8c31a180127063 (diff)
downloadunity-window-decorator-bc4b8257fe809b60d7224a59b2cc8eb53ece599d.tar.gz
unity-window-decorator-bc4b8257fe809b60d7224a59b2cc8eb53ece599d.tar.bz2
Register action callbacks.
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index 8e09ab3..c9a0b11 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -4608,6 +4608,40 @@ PrivateScreen::PrivateScreen (CompScreen *screen) :
startupSequenceTimer.setCallback (
boost::bind (&PrivateScreen::handleStartupSequenceTimeout, this));
startupSequenceTimer.setTimes (1000, 1500);
+
+
+ optionSetCloseWindowKeyInitiate (CompScreen::closeWin);
+ optionSetCloseWindowButtonInitiate (CompScreen::closeWin);
+ optionSetRaiseWindowKeyInitiate (CompScreen::raiseWin);
+ optionSetRaiseWindowButtonInitiate (CompScreen::raiseWin);
+ optionSetLowerWindowKeyInitiate (CompScreen::lowerWin);
+ optionSetLowerWindowButtonInitiate (CompScreen::lowerWin);
+
+ optionSetUnmaximizeWindowKeyInitiate (CompScreen::unmaximizeWin);
+
+ optionSetMinimizeWindowKeyInitiate (CompScreen::minimizeWin);
+ optionSetMinimizeWindowButtonInitiate (CompScreen::minimizeWin);
+ optionSetMaximizeWindowKeyInitiate (CompScreen::maximizeWin);
+ optionSetMaximizeWindowHorizontallyKeyInitiate (
+ CompScreen::maximizeWinHorizontally);
+ optionSetMaximizeWindowVerticallyKeyInitiate (
+ CompScreen::maximizeWinVertically);
+
+ optionSetWindowMenuKeyInitiate (CompScreen::windowMenu);
+ optionSetWindowMenuButtonInitiate (CompScreen::windowMenu);
+
+ optionSetShowDesktopKeyInitiate (CompScreen::showDesktop);
+ optionSetShowDesktopEdgeInitiate (CompScreen::showDesktop);
+
+ optionSetToggleWindowMaximizedKeyInitiate (CompScreen::toggleWinMaximized);
+ optionSetToggleWindowMaximizedButtonInitiate (CompScreen::toggleWinMaximized);
+
+ optionSetToggleWindowMaximizedHorizontallyKeyInitiate (
+ CompScreen::toggleWinMaximizedHorizontally);
+ optionSetToggleWindowMaximizedVerticallyKeyInitiate (
+ CompScreen::toggleWinMaximizedVertically);
+
+ optionSetToggleWindowShadedKeyInitiate (CompScreen::shadeWin);
}
PrivateScreen::~PrivateScreen ()