summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/inputzoom.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-23 16:05:50 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-23 16:05:50 +0000
commitd1b0ce3f104840e5fca15bb0545eacf218210d7a (patch)
tree6313e1d5b176dc73a3aedd5add13761a43b595db /beryl-plugins/src/inputzoom.c
parent07d2417991f6de3d07de0837fb0f3b9202e13894 (diff)
downloadmarex-dev-d1b0ce3f104840e5fca15bb0545eacf218210d7a.tar.gz
marex-dev-d1b0ce3f104840e5fca15bb0545eacf218210d7a.tar.bz2
Fix input zoom + cube unfold
git-svn-id: file:///beryl/trunk@3045 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/inputzoom.c')
-rw-r--r--beryl-plugins/src/inputzoom.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/beryl-plugins/src/inputzoom.c b/beryl-plugins/src/inputzoom.c
index edae7b6..a04b1f9 100644
--- a/beryl-plugins/src/inputzoom.c
+++ b/beryl-plugins/src/inputzoom.c
@@ -143,6 +143,8 @@ typedef struct _ZoomScreen
Bool hideNormal;
float maxTranslate;
+
+ int zoomLevelAtom;
} ZoomScreen;
#define GET_ZOOM_DISPLAY(d) \
@@ -544,6 +546,8 @@ static void zoomPreparePaintScreen(CompScreen * s, int msSinceLastPaint)
ZOOM_SCREEN(s);
ZOOM_DISPLAY(s->display);
+ IPCS_SetFloat(IPCS_OBJECT(s),zs->zoomLevelAtom,zs->currentScale);
+
if (zs->active)
{
int steps;
@@ -1060,6 +1064,8 @@ static Bool zoomInitScreen(CompPlugin * p, CompScreen * s)
zs->showScaled = ZOOM_SHOW_SCALED_CURSOR_DEFAULT;
zs->hideNormal = ZOOM_HIDE_NORMAL_CURSOR_DEFAULT;
+ zs->zoomLevelAtom = IPCS_GetAtom(IPCS_OBJECT(s),IPCS_FLOAT,"ZOOM_LEVEL",TRUE);
+
return TRUE;
}