search for: compdisplay

Displaying 20 results from an estimated 25 matches for "compdisplay".

2007 Jun 19
1
[PATCH] Added screen edge trigger delay setting.
...INAL 56 #define COMP_DISPLAY_OPTION_RUN_TERMINAL 57 #define COMP_DISPLAY_OPTION_PING_DELAY 58 -#define COMP_DISPLAY_OPTION_NUM 59 +#define COMP_DISPLAY_OPTION_EDGE_DELAY 59 +#define COMP_DISPLAY_OPTION_NUM 60 typedef CompOption *(*GetDisplayOptionsProc) (CompDisplay *display, int *count); @@ -904,6 +905,8 @@ struct _CompDisplay { CompTimeoutHandle autoRaiseHandle; Window autoRaiseWindow; + CompTimeoutHandle edgeDelayHandle; + CompOptionValue plugin; Bool dirtyPluginList; @@ -1107,6 +1110,16 @@ findCursorAtDisp...
2006 Oct 18
1
[PATCH] Compiz Events
...ut for the naming of events like this. -------------- next part -------------- diff --git a/include/compiz.h b/include/compiz.h index 61a9de5..a7eff50 100644 --- a/include/compiz.h +++ b/include/compiz.h @@ -568,6 +568,12 @@ typedef void (*FiniPluginForDisplayProc) typedef void (*HandleEventProc) (CompDisplay *display, XEvent *event); +typedef void (*HandleCompizEventProc) (CompDisplay *display, + char *pluginName, + char *eventName, + CompOption *option, + int nOption); + typedef Bool (*CallBackProc) (void *closure); type...
2006 Oct 16
2
Edge + Mouse button draft patches
...bindings. I do not mind this limitation too much but I would like to hear if I am doing something wrong. -------------- next part -------------- diff --git a/include/compiz.h b/include/compiz.h index 61a9de5..f3c6e6c 100644 --- a/include/compiz.h +++ b/include/compiz.h @@ -751,6 +751,8 @@ struct _CompDisplay { HandleEventProc handleEvent; + unsigned int mouseOnEdge; + CompPrivate *privates; }; -------------- next part -------------- diff --git a/src/event.c b/src/event.c index 2d182be..b228dde 100644 --- a/src/event.c +++ b/src/event.c @@ -266,12 +266,18 @@ triggerButtonPressBinding...
2007 Mar 02
3
CompDisplay from loaderLoadPlugin
I'm trying to use custom functions for loaderLoadPlugin and loaderUnloadPlugin to register/unregister plugin paths in the dbus plugin as needed but I need to get access to a CompDisplay or DbusDisplay in order to do so. Is there any way to get access to this? -- Travis Watkins http://www.realistanew.com
2006 Oct 25
2
[PATCH] Edge buttons
...clude/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_STEP #define COMP_SCREEN_OPTION_UNREDIRECT_FS 6 #define COMP_SCREEN_OPTION_DEFAULT_ICON 7 #define COMP_SCREEN_OPTION_S...
2006 Nov 08
2
bug in today's git snapshot with maximizing windows
...ompiz.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_STEP > #define COMP_SCREEN_OPTION_UNREDIRECT_FS 6 > #define COMP_SCREEN_OPT...
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
2007 Apr 11
2
Patch for ini plugin
...68105 100644 --- a/plugins/ini.c +++ b/plugins/ini.c @@ -26,6 +26,7 @@ * David Reveman <davidr@novell.com> */ +#define _GNU_SOURCE /* for asprintf */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -895,7 +854,6 @@ iniSaveOptions (CompDisplay *d, while (nOption--) { status = FALSE; - strVal = strdup (""); int i; switch (option->type) @@ -907,8 +865,11 @@ iniSaveOptions (CompDisplay *d, case CompOptionTypeColor: case CompOptionTypeMatch: strVal = iniOptionValueToString (&option->value, option-...
2007 Mar 07
4
Plugin Library Interface
...ere how it works in general. Core does save the shared library functions in a CompLibraryFunction struct: struct _CompLibraryFunction { CompLibraryFunction *prev; CompLibraryFunction *next; char *name; void *function; }; Core also gets a number of utility functions: void addLibraryFunction (CompDisplay *d, char *name, void *function); void removeLibraryFunction (CompDisplay *d, char *name); void* getLibraryFunction (CompDisplay *d, char* name); void updateLibraryFunction(CompDisplay *d, CompLibraryFunction *func); You can register a function through addLibraryFunction and remove it with removeLi...
2007 Apr 19
0
[PATCH] Make focusDefaultWindow () take a CompScreen as argument
...dex 4c72dd3..f882b84 100644 --- a/include/compiz.h +++ b/include/compiz.h @@ -26,7 +26,7 @@ #ifndef _COMPIZ_H #define _COMPIZ_H -#define ABIVERSION 20070417 +#define ABIVERSION 20070418 #include <stdio.h> #include <sys/time.h> @@ -985,7 +985,7 @@ Time getCurrentTimeFromDisplay (CompDisplay *d); void -focusDefaultWindow (CompDisplay *d); +focusDefaultWindow (CompScreen *s); void forEachWindowOnDisplay (CompDisplay *display, diff --git a/plugins/rotate.c b/plugins/rotate.c index bf6bb95..640c8f4 100644 --- a/plugins/rotate.c +++ b/plugins/rotate.c @@ -521,7 +521,7 @@ rotatePre...
2007 Aug 05
1
[PATCH] Unbound modifiers and CompNoMask
...a git patch email directly into gmail works as expected) --- src/event.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/event.c b/src/event.c index 3cd7435..1710c43 100644 --- a/src/event.c +++ b/src/event.c @@ -262,7 +262,8 @@ triggerButtonPressBindings (CompDisplay *d, { CompActionState state = CompActionStateInitButton; CompAction *action; - unsigned int modMask = REAL_MOD_MASK & ~d->ignoredModMask; + unsigned int modMask = (REAL_MOD_MASK & ~d->ignoredModMask) + | CompNoMask; unsigned...
2006 Oct 09
1
[PATCH] dbus terminate action
...quot; #define COMPIZ_DBUS_ACTIVATE_MEMBER_NAME "activate" +#define COMPIZ_DBUS_DEACTIVATE_MEMBER_NAME "deactivate" #define COMPIZ_DBUS_SET_MEMBER_NAME "set" #define COMPIZ_DBUS_GET_MEMBER_NAME "get" @@ -126,13 +127,34 @@ dbusGetOptionsFromPath (CompDisplay *d, * dbus-send --type=method_call --dest=org.freedesktop.compiz \ * /org/freedesktop/compiz/rotate/allscreens/rotate_to \ * org.freedesktop.compiz.activate \ - * string:'root' int32:0x52 string:'face' int32:1 + * string:'root' \ + * int32:`xwininfo -root...
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
2007 Jun 12
0
[PATCH] Added rotation state.
...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, + we set i...
2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...extents; + reg.numRects = 1; + + reg.extents.x1 = x; + reg.extents.y1 = y + extents.y_bearing - 2.0; + reg.extents.x2 = x + extents.width + 20.0; + reg.extents.y2 = y + extents.height; + + + as->content = TRUE; + damageScreenRegion (s, &reg); + + } +} + + +static Bool +annoRemoteInitiate (CompDisplay *d, + CompAction *action, + CompActionState state, + CompOption *option, + int nOption) +{ + CompScreen *s; + Window xid; + char *tool; + cairo_t *cr; + + xid = getIntOptionNamed (option, nOption, "root", 0); + + tool...
2006 Nov 12
4
Include option type in gconf schema
I am writing a configuration front end for the compiz gconf plugin at the moment, but it's proving harder than it should be because gconf does not record what type of compiz option the key is. For example, say i want a color picker for each color option the only way I can tell with gconf if it is color is if it has a # at the beginning, but there could be string option which also have a # at
2007 May 17
0
[PATCH] Add getCoreInfo function
...Example: + * + * dbus-send --print-reply --type=method_call \ + * --dest=org.freedesktop.compiz \ + * /org/freedesktop/compiz \ + * org.freedesktop.compiz.getCoreInfo + */ +static Bool +dbusHandleGetCoreInfoMessage (DBusConnection *connection, + DBusMessage *message, + CompDisplay *d) +{ + DBusMessage *reply; + const char *pluginDir = PLUGINDIR; + const char *homePluginDir = HOME_PLUGINDIR; + const char *metadataDir = METADATADIR; + int version = ABIVERSION; + + reply = dbus_message_new_method_return (message); + + dbus_message_append_args (reply, DBU...
2007 Mar 03
1
sticky windows and rotate focus
...ces this change has, but I haven't found any problems so far. Can anyone offer some advice? Steve -------------- next part -------------- diff --git a/src/display.c b/src/display.c index 9dcf0a1..5c763b3 100644 --- a/src/display.c +++ b/src/display.c @@ -3135,7 +3135,12 @@ focusDefaultWindow (CompDisplay *d) } } else - focus = w; + { + /* only focus sticky window if it already had focus */ + if (!(w->state & CompWindowStateStickyMask) || + w->id == d->activeWindow) + focus = w; + } } } }
2006 Oct 13
1
[PATCH] Extra Notifications
...dow *w); + +void +windowUnminimizeNotify (CompWindow *w); + +void windowStateChangeNotify (CompWindow *w); void -------------- next part -------------- diff --git a/src/screen.c b/src/screen.c index 5a1c145..1d404d9 100644 --- a/src/screen.c +++ b/src/screen.c @@ -1180,10 +1180,16 @@ addScreen (CompDisplay *display, s->focusWindow = focusWindow; s->setWindowScale = setWindowScale; + s->windowCreateNotify = windowCreateNotify; + s->windowDestroyNotify = windowDestroyNotify; + s->windowMapNotify = windowMapNotify; + s->windowUnmapNotify = windowUnma...
2007 Aug 20
1
[ANNOUNCE] compiz-0.5.4
...hanges since compiz-0.5.2: Danny Baumann: Remove trailing whitespace. Formatting fixes. Fix possible memleaks. Fix typos. David Reveman: Post release version increment. Fix typo. Remove whitespaces. Require x11-xcb. Add XCB connection handle to CompDisplay. Add CompNoMask to REAL_MOD_MASK. Select for focus change events on frame windows. Revert "Select for focus change events on frame windows." Usage of lastFoundWindow in findTopLevelWindowAtDisplay is Avoid using lastFoundWindow in findWindowAtDisplay. R...