diff options
author | racarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2006-12-15 19:14:11 +0000 |
---|---|---|
committer | racarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2006-12-15 19:14:11 +0000 |
commit | 86e59516afd064bb18678e58c73db8b27017e2e8 (patch) | |
tree | 7c71d7c74f7f1235e81b55c3b48ccdadbd076599 /beryl-plugins/src/rotate.c | |
parent | 7cb0c1b615bfb5fcab22971faf4c4ec929fbc6cb (diff) | |
download | marex-dev-86e59516afd064bb18678e58c73db8b27017e2e8.tar.gz marex-dev-86e59516afd064bb18678e58c73db8b27017e2e8.tar.bz2 |
IPCS Variable for mouse initiated rotate, option for cube to go transparent only on mouse initiated rotate
git-svn-id: file:///beryl/trunk@1776 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/rotate.c')
-rw-r--r-- | beryl-plugins/src/rotate.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/beryl-plugins/src/rotate.c b/beryl-plugins/src/rotate.c index 80eb89a..0740965 100644 --- a/beryl-plugins/src/rotate.c +++ b/beryl-plugins/src/rotate.c @@ -239,7 +239,7 @@ typedef struct _RotateScreen { XPoint savedPointer; Bool grabbed; - + int manualAtom; CompTimeoutHandle rotateHandle; Bool slow; unsigned int grabMask; @@ -974,7 +974,7 @@ rotateInitiate(CompDisplay * d, { CompScreen *s; Window xid; - + xid = getIntOptionNamed(option, nOption, "root", 0); s = findScreenAtDisplay(d, xid); @@ -1004,7 +1004,11 @@ rotateInitiate(CompDisplay * d, "ENABLE_3D"); rs->rotating = FALSE; - + if((state & CompActionStateInitButton)){ + IPCS_SetBool(IPCS_OBJECT(s),rs->manualAtom,TRUE); + } else { + IPCS_SetBool(IPCS_OBJECT(s),rs->manualAtom,FALSE); + } if (!rs->grabIndex) { rs->grabIndex = pushScreenGrab(s, s->invisibleCursor, @@ -2664,7 +2668,7 @@ static Bool rotateInitDisplay(CompPlugin * p, CompDisplay * d) rotateDisplayInitOptions(rd); WRAP(rd, d, handleEvent, rotateHandleEvent); - + d->privates[displayPrivateIndex].ptr = rd; return TRUE; @@ -2719,7 +2723,7 @@ static Bool rotateInitScreen(CompPlugin * p, CompScreen * s) rs->slow = FALSE; rs->grabMask = FALSE; rs->grabWindow = NULL; - + rs->manualAtom=IPCS_GetAtom(IPCS_OBJECT(s),IPCS_BOOL,"MOUSE_INITIATED_ROTATE",TRUE); rs->pointerSensitivity = ROTATE_POINTER_SENSITIVITY_DEFAULT * ROTATE_POINTER_SENSITIVITY_FACTOR; |