summaryrefslogtreecommitdiff
path: root/xcompmgr.c
AgeCommit message (Collapse)Author
2022-10-29Remove unused macrosAlan Coopersmith
Reported by clang: xcompmgr.c:159:9: warning: macro is not used [-Wunused-macros] #define TRANS_OPACITY 0.75 ^ xcompmgr.c:166:9: warning: macro is not used [-Wunused-macros] #define SHADOWS 1 ^ xcompmgr.c:167:9: warning: macro is not used [-Wunused-macros] #define SHARP_SHADOW 0 ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-29Mark usage() as _X_COLD _X_NORETURNAlan Coopersmith
Suggested by clang: xcompmgr.c:1963:1: warning: function 'usage' could be declared with attribute 'noreturn' [-Wmissing-noreturn] { ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-29Resolve -Wshadow warningsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-16Remove obsolete casts on malloc & free callsAlan Coopersmith
Not needed in C89 and later Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-16Reduce variable scope as suggested by cppcheckAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-17xcompmgr 1.1.6-1 doesn't draw shadowsBrandon Gooch
This patch reworks the XFixesIntersectRegion calls to apply to the correct window modes. Fixes: https://gitlab.freedesktop.org/xorg/app/xcompmgr/issues/3 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-17fix fade-in speed when opacity raisesJason Woofenden
Fixes: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=648158 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-26Combine usage message stringsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-18Only define shape_kind() function if DEBUG_SHAPE is trueAlan Coopersmith
Fixes gcc warning: xcompmgr.c:1762:1: warning: ‘shape_kind’ defined but not used Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-11-18Make dpy a local variable instead of a globalAlan Coopersmith
Fixes many gcc -Wshadow warnings Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-25Handle XShape window which shape changeAndreas
https://bugs.freedesktop.org/show_bug.cgi?id=20839 Tested-by: Yann Droneaud <yann@droneaud.fr> Signed-off-by: Andreas <finkandreas@web.de> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-11-20Remove trailing whitespaceAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-11-21don't hard-code package version in C source.Matthieu Herrb
While there, get rid of RCS Id. Reviewed-by: Remi Cardona <remi@gentoo.org>
2009-04-14Try to report current composite manager nameYann Droneaud
Try to read NET_WM_CM_Sn owner's NET_WM_NAME (or WM_NAME) property, otherwise report it's window id. Remarks: metacity and kwin currently don't set a window name for NET_WM_CM_Sn owner, but xcompmgr and compiz do. This should be added to wm-spec.
2009-04-14Check for _NET_WM_CM_Sn before trying to install ourself as composite managerYann Droneaud
Check for a selection owner of _NET_WM_CM_Sn is the first thing to do before taking ownership on it, so clients watching for selection ownership changes won't be disturbed.
2009-04-14Don't hard code the screen numberYann Droneaud
2009-04-14Fix error reportingYann Droneaud
Use the 'name' looked up for extension errors If 'name' is NULL, use XGetErrorText(). Report error on stderr.
2009-01-19Ansification and compile warning fixes.Paulo Cesar Pereira de Andrade
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings.
2008-04-02Make usage() report the current version.James Cloos
2008-02-13Fix a server resource leak on destroying windows.Dana Jansens
2007-03-12Make this loop slightly easier to read.Tilman Sauerbeck
2007-03-12Constified some variables.Tilman Sauerbeck
2007-03-12Include getopt.h for getopt().Tilman Sauerbeck
I think this should be portable. If it isn't, please yell at me and I'll add the necessary autoconf magic.
2007-03-12Fixed a bunch of warnings.Tilman Sauerbeck
2007-01-25Bug #9762: Fix opacity changes on unmapped windows.Mark Tiefenbruck
2006-12-21increase version number to 1.1.3xcompmgr-1.1.3Dave Airlie
2006-12-03Bug #2703: Fixed a memory leak in the fading code.Tilman Sauerbeck
2006-09-06Set the _NET_WM_CM_S* atom on the screen we're running on.Tilman Sauerbeck
2005-10-07Make a dummy window with a name, so xrestop can point its finger atEric Anholt
xcompmgr for being such a pig.
2005-01-27Bug #2391: Fix a use-after-free in run_fades. (Jonathan Briggs)XCOMPMGR_1_1_2Adam Jackson
2004-10-16Make xcompmgr distcheck and have a sane package name/version, and bumpEric Anholt
version to 1.1.1.
2004-09-29Modified paint_all so that it doesn't draw off-screen windows, and doesn'tdolio
draw shadows on desktop 'root' windows.
2004-09-27bump version numberXCOMPMGR_1_1Adam Jackson
2004-09-23Added command-line options for changing values relevant to fading.dolio
2004-09-23Miscellaneous code cleanup and failed allocation checks.dolio
2004-09-21Added shadow precomputation for large-enough windows.dolio
2004-09-20Print the version number in the usage summary.Adam Jackson
2004-09-18Added various options for client-side shadows (offset, opacity,dolio
blur-radius) based on the work of Thomas Luebking, along with the man entries and usage information to go along with them.
2004-09-17Changed the usage function to display information on the available options.dolio
2004-09-17Added allocation failure checks in shadow_picture and caused it to exitdolio
gracefully rather than writing to unallocated memory.
2004-09-14Bug #1360: Fix a segfault by checking the return value of XQueryTree.Adam Jackson
(Johan Kiviniemi)
2004-09-10More effects, bug fixes, doc updates.XCOMPMGR_1_0Adam Jackson
2004-08-14Remove abort call as it's just annoying. Add -a flag to just use AutomaticKeith Packard
compositing. No glitz, but no screen mangling either.
2004-08-13Add name window pixmap supportKeith Packard
2004-07-08Eliminate 'struct timezone tz' as it isn't used.Keith Packard
reviewed by: Keith Packard
2004-07-08Add fade-in/fade-out support (-f option). Clean up leak of solid alphaKeith Packard
picture per redraw of constant-alpha windows.
2004-06-27Only use XCompositeNameWindowPixmap when the library provides itKeith Packard
2004-06-27Make composite manager mode run-time selectable with command line option:Keith Packard
-s: server-side shadows (sharp, but follows window alpha) -c: client-side shadows (blurred, but uses window extents only) -n: no shadows (this is the default mode)
2004-06-27Ok, this synchronizes all of my changes for the last many months. Has codeKeith Packard
to do server-based shadows (SHARP_SHADOW). Has code to try and ignore appropriate errors (helps somewhat). Has code to handle global window translucency. Lots of other minor changes.
2003-12-02Track whether cliplists have changed and avoid computation when not. ShrinkKeith Packard
shadows. Speed up shadow construction a bit by using memset. Eliminate useless INTERVAL code. Use XSync after paint_all to gather more events per update.