Displaying 2 results from an estimated 2 matches for "annoinitiate".
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
2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...quot;,
+ "Sans");
+ size = getFloatOptionNamed (option, nOption, "size", 36.0);
+
+ annoDrawText (s, x, y, text, family, size, slant, weight,
+ fillColor, strokeColor, strokeWidth);
+ }
+ }
+ }
+
+ return FALSE;
+
+}
+
static Bool
annoInitiate (CompDisplay *d,
CompAction *action,
@@ -174,24 +535,28 @@
if (state & CompActionStateInitKey)
action->state |= CompActionStateTermKey;
- annoLastPointerX = pointerX;
- annoLastPointerY = pointerY;
+ as->startX = annoLastPointerX = pointerX;
+ as->startY = an...