summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-11-27 13:23:33 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-11-27 13:23:33 +0800
commit8e68ef64414b43dacd412243068dd8e8d851cad9 (patch)
treecba8ff071c0e6643f4ff1d8558340807c0308ca0
parent12ffb0695a3ff2645d01d64eef692d911d07eeb3 (diff)
downloadput-8e68ef64414b43dacd412243068dd8e8d851cad9.tar.gz
put-8e68ef64414b43dacd412243068dd8e8d851cad9.tar.bz2
Hook up put_put with the right action callback
-rw-r--r--src/put.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/put.cpp b/src/put.cpp
index 36c2222..8ec610d 100644
--- a/src/put.cpp
+++ b/src/put.cpp
@@ -102,7 +102,7 @@ PutScreen::boxCompare (const CompRect& a,
/* Extends the given box for Window w to fit as much space in region r.
* If XFirst is true, it will first expand in the X direction,
- * then Y. This is because it gives different results.
+ * then Y. This is because it gives different results.
* PS: Decorations are icky.
*/
@@ -859,7 +859,7 @@ PutScreen::preparePaint (int ms)
}
}
}
-
+
cScreen->preparePaint (ms);
}
@@ -1208,6 +1208,9 @@ PutScreen::PutScreen (CompScreen *screen) :
compizPutWindowAtom = XInternAtom(screen->dpy (),
"_COMPIZ_PUT_WINDOW", 0);
+ optionSetPutPutInitiate (boost::bind (&PutScreen::initiate, this,
+ _1, _2, _3));
+
#define setAction(action, type) \
optionSet##action##KeyInitiate (boost::bind (&PutScreen::initiateCommon, \
this, _1,_2,_3,type)); \