search for: edgemask

Displaying 7 results from an estimated 7 matches for "edgemask".

2006 Oct 25
2
[PATCH] Edge buttons
...are acceptable, please let me know if they aren't. -------------- next part -------------- diff --git a/include/compiz.h b/include/compiz.h index 6161f99..8e32f2d 100644 --- a/include/compiz.h +++ b/include/compiz.h @@ -343,7 +343,8 @@ struct _CompAction { Bool bell; - unsigned int edgeMask; + unsigned int edgeMask; + int edgeButton; }; typedef struct { @@ -751,6 +752,8 @@ struct _CompDisplay { HandleEventProc handleEvent; + unsigned int mouseOnEdge; + CompPrivate *privates; }; @@ -1125,7 +1128,8 @@ #define COMP_SCREEN_OPTION_OPACITY_ST...
2006 Nov 08
2
bug in today's git snapshot with maximizing windows
...ext document attachment (edgebutton-compiz.h.diff) > diff --git a/include/compiz.h b/include/compiz.h > index 6161f99..8e32f2d 100644 > --- a/include/compiz.h > +++ b/include/compiz.h > @@ -343,7 +343,8 @@ struct _CompAction { > > Bool bell; > > - unsigned int edgeMask; > + unsigned int edgeMask; > + int edgeButton; > }; > > typedef struct { > @@ -751,6 +752,8 @@ struct _CompDisplay { > > HandleEventProc handleEvent; > > + unsigned int mouseOnEdge; > + > CompPrivate *privates; >...
2006 Oct 16
2
Edge + Mouse button draft patches
...nPressBindings (CompDisplay { if (action->button.button == event->xbutton.button) { - bindMods = virtualToRealModMask (d, action->button.modifiers); + /* if it has an edge mask set then make sure the mouse + is on that corner as well */ + if (!option->value.action.edgeMask || + (option->value.action.edgeMask & d->mouseOnEdge)) + { + bindMods = virtualToRealModMask (d, action->button.modifiers); - if ((bindMods & modMask) == (event->xbutton.state & modMask)) - if ((*action->initiate) (d, action, state, - argument,...
2007 Apr 11
2
Patch for ini plugin
...s=%s\n", option->name, "bell", strVal); + free (strVal); - strVal = strdup (""); + strVal = malloc (sizeof(char) * MAX_OPTION_LENGTH); + strcpy (strVal, ""); for (i = 0; i < SCREEN_EDGE_NUM; i++) { if (option->value.action.edgeMask & (1 << i)) { - char listVal[MAX_OPTION_LENGTH]; - strcpy (listVal, edgeToString (i)); - if (!(strVal = realloc (strVal, MAX_OPTION_LENGTH))) - return FALSE; - - if (!firstInList) - strVal = strcat (strVal, ","); - firstInList = FALSE; - - if...
2007 May 19
2
Crash in blur.c (SIGSEGV)
...40001000c out of bounds>, type = CompOptionTypeBool, value = { b = 0, i = 0, f = 0, s = 0x0, c = {0, 0, 0, 0}, action = {initiate = 0, terminate = 0, state = 0, type = CompBindingTypeNone, key = {keycode = 0, modifiers = 0}, button = {button = 0, modifiers = 0}, bell = 0, edgeMask = 0, edgeButton = 0, priv = {ptr = 0x0, val = 0, uval = 0, fptr = 0}}, match = {display = 0x0, op = 0x0, nOp = 0}, list = {type = CompOptionTypeBool, value = 0x0, nValue = 0}}, rest = {i = {min = 0, max = 24}, f = {min = 0, max = 3.36311631e-44, precision = 1.12103877e-44}...
2006 Jun 08
1
[PATCH] raise window key binding
With raise_on_click disabled, I wanted to be able to raise a window with a button click sometimes. It seemed logical to do something like the lower window key binding. So I did it. It was quite simple, but here is the patch anyway. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/octet-stream Size: 3680 bytes Desc: not available
2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...+ o->longDesc = N_("Initiate annotate drawing with dbus"); + o->type = CompOptionTypeAction; + o->value.action.initiate = annoRemoteInitiate; + o->value.action.terminate = 0; + o->value.action.bell = FALSE; + o->value.action.edgeMask = 0; + o->value.action.type = CompBindingTypeButton; + o->value.action.button.modifiers = 0; + o->value.action.button.button = 0; + o = &ad->opt[ANNO_DISPLAY_OPTION_ERASE]; o->name = "erase"; o->shortDesc = N_("I...