summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2009-07-01 21:26:10 +0800
committerJoel Bosveld <Joel.Bosveld@gmail.com>2009-07-01 23:09:59 +0800
commit3b3f9ce97cf85f0bb4f973ce409c74b7b4fde871 (patch)
tree92bcdcb60f9debd2033b0560851b3f2b1cae0bb2 /src/main.cpp
parent8f734f64d025eeaecc9ca9ab5b250dc305a425ea (diff)
downloadunity-window-decorator-3b3f9ce97cf85f0bb4f973ce409c74b7b4fde871.tar.gz
unity-window-decorator-3b3f9ce97cf85f0bb4f973ce409c74b7b4fde871.tar.bz2
Move modifier handling into a separate top level class exposed to plugins
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 957effe..100de7b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -187,6 +187,11 @@ main (int argc, char **argv)
if (!screen)
return 1;
+ modHandler = new ModifierHandler ();
+
+ if (!modHandler)
+ return 1;
+
if (!plugins.empty ())
{
CompOption::Value::Vector list;
@@ -208,6 +213,8 @@ main (int argc, char **argv)
if (!screen->init (displayName))
return 1;
+ modHandler->updateModifierMappings ();
+
if (!disableSm)
CompSession::init (clientId);
@@ -217,6 +224,7 @@ main (int argc, char **argv)
CompSession::close ();
delete screen;
+ delete modHandler;
if (restartSignal)
{