Displaying 2 results from an estimated 2 matches for "rotateinitiate".
2007 Jun 12
0
[PATCH] Added rotation state.
...te.c
@@ -346,6 +346,9 @@ rotatePreparePaintScreen (CompScreen *s,
else
tx = (s->hsize * xrot / 360.0f) + 0.5f;
+ /* flag end of rotation */
+ cs->rotationState = RotationNone;
+
moveScreenViewport (s, tx, 0, TRUE);
rs->xrot = 0.0f;
@@ -559,6 +562,7 @@ rotateInitiate (CompDisplay *d,
if (s)
{
ROTATE_SCREEN (s);
+ CUBE_SCREEN (s);
if (s->hsize < 2)
return FALSE;
@@ -577,6 +581,14 @@ rotateInitiate (CompDisplay *d,
rs->moving = FALSE;
rs->slow = FALSE;
+ /* Set the rotation state for cube - if action is non-NULL,...
2007 Jan 02
2
Return value from an action function
I had always assumed that an action option
should return true if it handles the action,
but it seems like most button bindings actually
return false which causes a few problems.
1. The clicks pass through to windows which
is not good for rotate, screenshot or annotate.
2. I am trying to add a generic action notification
which plugins can wrap to see when other actions
are initiated and