summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2009-01-13 10:22:47 +0900
committerSam Spilsbury <Sam@XPS-SUSE.site>2009-01-13 10:22:47 +0900
commit17fa292914dd2c19b46f92a3b6e2b63d54ce2844 (patch)
tree1547f4e1af2c4884bbed05c217ec7ef2e7f2f1c7
parentfbe1ae351905b83b64684207ea4bbaa2335760c4 (diff)
downloadlazypointer-17fa292914dd2c19b46f92a3b6e2b63d54ce2844.tar.gz
lazypointer-17fa292914dd2c19b46f92a3b6e2b63d54ce2844.tar.bz2
Compiz indentation style
-rw-r--r--lazypointer.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/lazypointer.cpp b/lazypointer.cpp
index 6adf597..de3071f 100644
--- a/lazypointer.cpp
+++ b/lazypointer.cpp
@@ -32,7 +32,7 @@ void
LPScreen::preparePaint (int ms)
{
LP_SCREEN (screen);
- float speed = ls->optionGetSpeed ();
+ float speed = ls->optionGetSpeed ();
float steps = ((float) ms / ((20.1 - speed) * 100));
if (steps < 0.0005)
@@ -95,7 +95,7 @@ LPWindow::place (CompPoint &pos)
int rx, ry, winx, winy;
unsigned int mask;
Bool ret;
- Bool status;
+ Bool status;
ret = XQueryPointer(screen->dpy (), screen->root (),
&root, &child,
@@ -258,17 +258,17 @@ LPScreen::directionInitiate (CompAction *action,
int dx,
int dy)
{
- screen->warpPointer (dx, dy);
-
- return true;
+ screen->warpPointer (dx, dy);
+
+ return true;
}
/* Constructor */
LPScreen::LPScreen (CompScreen *screen) :
PrivateHandler<LPScreen, CompScreen> (screen),
- LazypointerOptions (lazypointerVTable->getMetadata ()),
- cScreen (CompositeScreen::get (screen)),
+ LazypointerOptions (lazypointerVTable->getMetadata ()),
+ cScreen (CompositeScreen::get (screen)),
destX (0),
destY (0),
initialX (pointerX),
@@ -276,21 +276,21 @@ LPScreen::LPScreen (CompScreen *screen) :
needsWarp (false)
{
ScreenInterface::setHandler (screen);
- CompositeScreenInterface::setHandler (cScreen);
-
- optionSetInitiateLeftKeyInitiate (boost::bind (directionInitiate, _1, _2, _3, -1, 0));
- optionSetInitiateRightKeyInitiate (boost::bind (directionInitiate, _1, _2, _3, 1, 0));
- optionSetInitiateUpKeyInitiate (boost::bind (directionInitiate, _1, _2, _3, 0, -1));
- optionSetInitiateDownKeyInitiate (boost::bind (directionInitiate, _1, _2, _3, 0, 1));
- optionSetInitiateWindowKeyInitiate (winInitiate);
- optionSetInitiateScreenKeyInitiate (screenInitiate);
+ CompositeScreenInterface::setHandler (cScreen);
+
+ optionSetInitiateLeftKeyInitiate (boost::bind (directionInitiate, _1, _2, _3, -1, 0));
+ optionSetInitiateRightKeyInitiate (boost::bind (directionInitiate, _1, _2, _3, 1, 0));
+ optionSetInitiateUpKeyInitiate (boost::bind (directionInitiate, _1, _2, _3, 0, -1));
+ optionSetInitiateDownKeyInitiate (boost::bind (directionInitiate, _1, _2, _3, 0, 1));
+ optionSetInitiateWindowKeyInitiate (winInitiate);
+ optionSetInitiateScreenKeyInitiate (screenInitiate);
}
LPWindow::LPWindow (CompWindow *window) :
PrivateHandler<LPWindow, CompWindow> (window),
window (window)
{
- WindowInterface::setHandler (window);
+ WindowInterface::setHandler (window);
}
bool