summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/inputzoom.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-25 23:40:23 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-25 23:40:23 +0000
commite91687b8cbc51f1374399da4733d8540d6a590b8 (patch)
treebdd75f504147a7b8f65b101c85dc8f43a7f46ed3 /beryl-plugins/src/inputzoom.c
parentb1a7ad3db728c9ccf6adc6c5f66fd750c617bc1f (diff)
downloadmarex-dev-e91687b8cbc51f1374399da4733d8540d6a590b8.tar.gz
marex-dev-e91687b8cbc51f1374399da4733d8540d6a590b8.tar.bz2
beryl-plugins: inputzoom: update mouse after screen paint
git-svn-id: file:///beryl/trunk@3147 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/inputzoom.c')
-rw-r--r--beryl-plugins/src/inputzoom.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/beryl-plugins/src/inputzoom.c b/beryl-plugins/src/inputzoom.c
index 30c96cf..f115d9f 100644
--- a/beryl-plugins/src/inputzoom.c
+++ b/beryl-plugins/src/inputzoom.c
@@ -145,6 +145,7 @@ typedef struct _ZoomScreen
Bool cursorInfoSelected;
Bool showScaled;
Bool hideNormal;
+ Bool noTimerUpdate;
float maxTranslate;
} ZoomScreen;
@@ -553,7 +554,8 @@ static Bool zoomUpdateMouse(void *vs)
}
}
- zs->mouseTimeout =
+ if (!zs->noTimerUpdate)
+ zs->mouseTimeout =
compAddTimeout(zs->opt[ZOOM_SCREEN_OPTION_MOUSE_UPDATE].value.i,
zoomUpdateMouse, s);
return FALSE;
@@ -652,6 +654,9 @@ static void zoomDonePaintScreen(CompScreen * s)
{
damageScreen(s);
}
+ zs->noTimerUpdate = TRUE;
+ zoomUpdateMouse(s);
+ zs->noTimerUpdate = FALSE;
UNWRAP(zs, s, donePaintScreen);
(*s->donePaintScreen) (s);
@@ -1100,6 +1105,8 @@ static Bool zoomInitScreen(CompPlugin * p, CompScreen * s)
zs->showScaled = ZOOM_SHOW_SCALED_CURSOR_DEFAULT;
zs->hideNormal = ZOOM_HIDE_NORMAL_CURSOR_DEFAULT;
+ zs->noTimerUpdate = FALSE;
+
return TRUE;
}