search for: compscreen

Displaying 20 results from an estimated 32 matches for "compscreen".

2007 Jun 12
0
[PATCH] Combined checkFTB and capDirection into one checkOrientation function.
...ns/cube.c | 120 +++++++++++++++++-------------------------------------- 2 files changed, 43 insertions(+), 95 deletions(-) diff --git a/include/cube.h b/include/cube.h index 0a87626..293bad1 100644 --- a/include/cube.h +++ b/include/cube.h @@ -87,16 +87,11 @@ typedef void (*CubePaintInsideProc) (CompScreen *s, CompOutput *output, int size); -typedef Bool (*CubeCheckFTBProc) (CompScreen *s, - const ScreenPaintAttrib *sAttrib, - const CompTransform *transform, - CompOutput *output); - -typedef Bool (*CubeCapDirectionProc) (CompScr...
2007 Apr 19
0
[PATCH] Make focusDefaultWindow () take a CompScreen as argument
...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 @@ rotatePreparePaintScreen (CompScreen *s, /* only focus default window if switcher isn&...
2007 Feb 21
1
blur plugin and GL_ARB_fragment_program extension
The blur plugin has GL_ARB_fragment_program extension as a prerequisite. At least that's what I'm getting by looking at screen.c. I think there should be a check for the "CompScreen::fragmentProgram" flag somewhere in blur.c to prevent it from loading or at least executing a <null> pointer. I get a crash in line blur.c:1858, because CompScreen::programEnvParameter4f is zero. I have a NV28 with 1.0-9631 binary drivers and a rv250 with Xorg7.1 drivers, none of w...
2023 Mar 29
0
X.Org Security Advisory: CVE-2023-1393: X.Org Server Overlay Window Use-After-Free
...code execution for ssh X forwarding sessions. ZDI-CAN-19866/CVE-2023-1393: X.Org Server Overlay Window Use-After-Free Local Privilege Escalation Vulnerability If a client explicitly destroys the compositor overlay window (aka COW), the Xserver would leave a dangling pointer to that window in the CompScreen structure, which will trigger a use-after-free later. Patches ------- Patch for this issue have been committed to the xorg server git repository. xorg-server 21.1.8 will be released shortly and will include this patch. - commit 26ef545b3 - composite: Fix use-after-free of the COW (https://gitl...
2007 Jun 12
0
[PATCH] Made checkFTB wrapable (needed by cubereflex plugin).
--- include/cube.h | 6 ++++++ plugins/cube.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/include/cube.h b/include/cube.h index a8baf1f..c360a73 100644 --- a/include/cube.h +++ b/include/cube.h @@ -75,6 +75,11 @@ typedef void (*CubePaintTopBottomProc) (CompScreen *s, CompOutput *output, int size); +typedef Bool (*CubeCheckFTBProc) (CompScreen *s, + const ScreenPaintAttrib *sAttrib, + const CompTransform *transform, + CompOutput *output); + typedef enum _PaintOrder { BTF = 0, @@ -103,6 +10...
2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...double startX; + double startY; + + Bool eraseMode; + } AnnoScreen; #define GET_ANNO_DISPLAY(d) \ @@ -85,6 +115,8 @@ #define NUM_OPTIONS(s) (sizeof ((s)->opt) / sizeof (CompOption)) +#define NUM_TOOLS (sizeof (tools) / sizeof (tools[0])) + static void annoCairoClear (CompScreen *s, cairo_t *cr) @@ -143,6 +175,335 @@ return as->cairo; } + +static void +annoDrawCircle (CompScreen *s, double xc, double yc, double radius, + unsigned short *fillColor, unsigned short *strokeColor, + double strokeWidth) +{ + REGION reg; + cairo_t *cr; + + ANNO_SCREEN...
2006 Oct 25
2
[PATCH] Edge buttons
...ULT "icon.png" #define SYNC_TO_VBLANK_DEFAULT TRUE +#define SCREEN_EDGE_SIZE_DEFAULT 1 +#define SCREEN_EDGE_SIZE_MIN 1 +#define SCREEN_EDGE_SIZE_MAX 50 + #define NUM_OPTIONS(s) (sizeof ((s)->opt) / sizeof (CompOption)) static int @@ -164,6 +168,59 @@ updateDefaultIcon (CompScreen *screen) return TRUE; } +static void +updateScreenEdges (CompScreen *s) +{ + + int edgeSize = 0; + + edgeSize = s->opt[COMP_SCREEN_OPTION_EDGE_SIZE].value.i; + if (edgeSize < 0) + edgeSize = 1; + + struct screenEdgeGeometry { + int xw, x0; + int yh, y0; + int ww, w0; + int...
2008 Feb 08
0
[PATCH] Make outputDeviceForGeometry behave smarter when dealing with overlapping outputs. Currently, the current output is returned if some part of the rectangle is on it; otherwise the output device the rectangle center is on is returned. This works
...dex ca308df..701a57f 100644 --- a/src/screen.c +++ b/src/screen.c @@ -36,6 +36,7 @@ #include <sys/types.h> #include <unistd.h> #include <assert.h> +#include <limits.h> #include <X11/Xlib.h> #include <X11/Xatom.h> @@ -3953,6 +3954,27 @@ viewportForGeometry (CompScreen *s, } } +static int +rectangleOverlapArea (BOX *rect1, + BOX *rect2) +{ + int left, right, top, bottom; + + /* extents of overlapping rectangle */ + left = MAX (rect1->x1, rect2->x1); + right = MIN (rect1->x2, rect2->x2); + top = MAX (rect1->y1, rect2-&g...
2006 Nov 08
2
bug in today's git snapshot with maximizing windows
...BLANK_DEFAULT TRUE > > +#define SCREEN_EDGE_SIZE_DEFAULT 1 > +#define SCREEN_EDGE_SIZE_MIN 1 > +#define SCREEN_EDGE_SIZE_MAX 50 > + > #define NUM_OPTIONS(s) (sizeof ((s)->opt) / sizeof (CompOption)) > > static int > @@ -164,6 +168,59 @@ updateDefaultIcon (CompScreen *screen) > return TRUE; > } > > +static void > +updateScreenEdges (CompScreen *s) > +{ > + > + int edgeSize = 0; > + > + edgeSize = s->opt[COMP_SCREEN_OPTION_EDGE_SIZE].value.i; > + if (edgeSize < 0) > + edgeSize = 1; > + > + st...
2007 Nov 26
1
[PATCH] Don't draw shaded windows about to be destroyed
--- src/paint.c | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/paint.c b/src/paint.c index 00cbf73..4ddd332 100644 --- a/src/paint.c +++ b/src/paint.c @@ -193,7 +193,12 @@ paintOutputRegion (CompScreen *screen, if (w->destroyed) continue; - if (!w->shaded) + if (w->shaded) + { + if (w->id < 2) + continue; + } + else { if (w->attrib.map_state != IsViewable || !w->damaged) continue; @@ -232,7 +237,12 @@ paintOutputRegion (CompScreen *scre...
2007 Aug 22
1
WindowRemoveNotifyProc
Hello, I'm doing a C++ wrapper and I need the counterpart of WindowAddNotifyProc Every plugin must be rebuild since CompScreen is modified, hence ABIVERSION should be changed as well. Would it be possible to implement it ? Patch attached Pafy. -------------- next part -------------- A non-text attachment was scrubbed... Name: compiz-WindowRemoveNotifyProc.patch Type: text/x-diff Size: 1734 bytes Desc: not available Url...
2007 May 23
1
[PATCH] Fix imageBufferToTexture for MSBFirst platforms.
...MSBFirst platforms complained, one code path should suffice. --- src/texture.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/src/texture.c b/src/texture.c index 4170c70..7021643 100644 --- a/src/texture.c +++ b/src/texture.c @@ -164,13 +164,8 @@ imageBufferToTexture (CompScreen *screen, unsigned int width, unsigned int height) { -#if IMAGE_BYTE_ORDER == MSBFirst - return imageToTexture (screen, texture, image, width, height, - GL_BGRA, GL_UNSIGNED_BYTE); -#else return imageToTexture (screen, texture, image, width, height, GL_BGRA,...
2007 May 19
2
Crash in blur.c (SIGSEGV)
..., id=<value optimized out>, aboveId=20989985) at window.c:2132 w = (CompWindow *) 0x1e67540 #16 0x000000000041e832 in handleEvent (d=0x633f00, event=0x7fff0f24ad30) at event.c:1249 raise = <value optimized out> delay = <value optimized out> s = (CompScreen *) 0x7be910 w = <value optimized out> #17 0x00002aaaacac355d in thumbHandleEvent (d=0x633f00, event=0x7fff0f24ad30) at thumbnail.c:588 td = (ThumbDisplay *) 0x8ceb30 w = (CompWindow *) 0x81b460 #18 0x00002aaaad2de65a in ringHandleEvent (d=0x633f00, event=0x7fff0f24ad30...
2007 Apr 16
1
Multiscreen patches
...vements on this patch might be a good idea. In Beryl we chose to leave this as an option, but that doesn't strike me as the best approach either. Is sharing display lists across screens meant to be possible? (If not, we don't need the code that allows it). 0002-Change-warpPointer-to-take-a-CompScreen-as-argument.txt Without this, the pointer will warp to the same screen regardless of where it was (whichever happens to be d->screens). Plugins not in the compiz repo will have to adjust. 0003-Use-makeScreenCurrent-is-run-before-dealing-with-textures.txt This makes sure we're working on the...
2007 May 24
3
Extensible logging framework
Attached is a quick patch which adds a logging framework to compiz. I think it should be fairly self explanitory. I think it should allow plugin writers to extend it for any purpose, but I would appreciate any feedback or comments before going any further. Regards Mike -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: logging.diff Url:
2006 Oct 13
1
[PATCH] Extra Notifications
...ndow); +typedef void (*WindowMinimizeNotifyProc) (CompWindow *window); + +typedef void (*WindowUnminimizeNotifyProc) (CompWindow *window); + typedef void (*WindowStateChangeNotifyProc) (CompWindow *window); #define COMP_SCREEN_DAMAGE_PENDING_MASK (1 << 0) @@ -1497,10 +1509,16 @@ struct _CompScreen { FocusWindowProc focusWindow; SetWindowScaleProc setWindowScale; + WindowCreateNotifyProc windowCreateNotify; + WindowDestroyNotifyProc windowDestroyNotify; + WindowMapNotifyProc windowMapNotify; + WindowUnmapNotifyProc windowUnmapNotify; WindowResizeNotifyProc win...
2007 Apr 12
1
Multihead related issues
First, there are two fundamentally diffrent types of doing multihead: The "one big screen" solution, usually achieved with xinerama , twinview or similar. This provides us with one Screen, and therefor one CompScreen structure. The output extens are retrieved from xinerama, or possibly randr (in the future?), I would assume. Then there is the less used "multiscreen" way, which gives two seperate screens; you can't move windows across them, but you can also change the viewports individually. Comp...
2009 Jun 06
0
[PATCH][0.9] Move modifier handling into a separate top-level class
Hi, The attached patch moves modifier handling into a separate top-level class along with CompScreen in order that modifier manipulation and conversion functions are exposed to plugins. It is required by vpswitch for example. The patch has been tested and works fine and shouldn't require an ABI bump because no function in screen.h has been removed, only functions in privatescreen.h Kind Rega...
2007 Oct 12
1
[PATCH] Make runCommand() work with multiple screens.
--- src/screen.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/screen.c b/src/screen.c index 41f031e..9fa2a11 100644 --- a/src/screen.c +++ b/src/screen.c @@ -3282,8 +3282,13 @@ runCommand (CompScreen *s, if (fork () == 0) { + size_t len = strlen (s->display->displayString); + char displayString[len + 16]; + strcpy (displayString, s->display->displayString); + displayString[len - 1] = '0' + s->screenNum; + setsid (); - putenv (s->display->displayString)...
2007 Oct 12
1
[PATCH] Start window decorator on all screens.
...670ab 100644 --- a/plugins/decoration.c +++ b/plugins/decoration.c @@ -1145,21 +1145,14 @@ decorSetDisplayOption (CompPlugin *plugin, case DECOR_DISPLAY_OPTION_COMMAND: if (compSetStringOption (o, value)) { - if (display->screens && *o->value.s != '\0') + CompScreen *s; + + for (s = display->screens; s; s = s->next) { DECOR_SCREEN (display->screens); - /* run decorator command if no decorator is present on - first screen */ if (!ds->dmWin) - { - if (fork () == 0) - { - putenv (display->displayString); - exec...