summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@XPS-SUSE.site>2008-11-08 19:25:16 +0900
committerSam Spilsbury <Sam@XPS-SUSE.site>2008-11-08 19:25:16 +0900
commite6b8856578651338b2f4bf4e7b40015ad2f617db (patch)
treec50afa99eb1c17ef96ebcf283732224d4cb74572
parent070800d14d4a4fc5df91503a48172a18ec16286a (diff)
downloadlazypointer-e6b8856578651338b2f4bf4e7b40015ad2f617db.tar.gz
lazypointer-e6b8856578651338b2f4bf4e7b40015ad2f617db.tar.bz2
* Use options and add todo
-rw-r--r--lazypointer.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lazypointer.c b/lazypointer.c
index 3f29e6c..ab7fe49 100644
--- a/lazypointer.c
+++ b/lazypointer.c
@@ -19,6 +19,7 @@
* Warps your pointer based on window events and actions so that
* you don't have to.
*
+ * TODO: Maybe some animation would look sexy
**/
#define _GNU_SOURCE
@@ -114,7 +115,7 @@ lpActivateWindow (CompWindow *w)
&root, &child,
&rx, &ry, &winx, &winy, &mask);
- if (ret)
+ if (ret && lazypointerGetCentreOnActivate (w->screen->display))
{
dx = cX - rx;
dy = cY - ry;
@@ -145,7 +146,7 @@ lpFocusWindow (CompWindow *w)
&root, &child,
&rx, &ry, &winx, &winy, &mask);
- if (ret)
+ if (ret && lazypointerGetCentreOnFocus (w->screen->display))
{
dx = cX - rx;
dy = cY - ry;
@@ -186,7 +187,7 @@ lpWinInitiate (CompDisplay *d,
&root, &child,
&rx, &ry, &winx, &winy, &mask);
- if (ret)
+ if (ret && lazypointerGetCentreOnPlace (w->screen->display))
{
dx = cX - rx;
dy = cY - ry;