Commit Graph

241 Commits

Author SHA1 Message Date
Kim Woelders 88dba1cfff Re-indent with indent-2.2.12 2020-01-23 21:30:02 +01:00
Kim Woelders 8f1bfc4f53 Fix warnings occurring in various situations 2020-01-23 20:29:05 +01:00
Kim Woelders b9a9946a0a Update copyright to 2018 2018-12-22 11:44:22 +01:00
Kim Woelders 22b5e58dcd Refactor/rename/use _EFREE type macros 2018-12-22 11:44:22 +01:00
Kim Woelders 4b319d794b Wrap some calls to XRenderCreatePicture(). 2015-01-25 00:05:10 +01:00
Kim Woelders 72328b12ab CM: Reorder start/stop details. 2015-01-24 15:50:15 +01:00
Kim Woelders 88e48caf47 CM: Fadeout tweak. 2015-01-24 15:37:56 +01:00
Kim Woelders 345a7a1d7d CM: Cosmetics. 2015-01-24 15:37:56 +01:00
Kim Woelders 9c31fe29ed Clean up header file inclusion order.
Fixes building with e.g. -std=c99 and c11 by always including config.h
(which defines _GNU_SOURCE) first.
2015-01-17 19:33:42 +01:00
Kim Woelders 168ef48fbc Minor fading animation tweak.
Keep fading animator pointer around to avoid having to look it up later.
2015-01-10 18:56:58 +01:00
Kim Woelders 94714f9b72 Initial CM/Present experimental support.
Seems to work... kindof..
2014-11-23 18:09:28 +01:00
Kim Woelders 611e6bfed0 Debug printout cleanups. 2014-11-22 16:33:08 +01:00
Kim Woelders 7c6deaabbf Extension version checking cleanups. 2014-11-20 21:45:25 +01:00
Kim Woelders 83e1e6e88f Add argb option to EPictureCreateBuffer(). 2014-08-17 16:14:59 +02:00
Kim Woelders 4d1bde02ae Wrap XID and some other X types.
Mostly to change longs to ints to reduce memory footprint a bit on 64
bit systems.
2014-04-23 19:13:00 +02:00
Kim Woelders a14e2978d8 Wrap some calls to XFillRectangle. 2013-12-29 08:59:39 +01:00
Kim Woelders e1f062fff5 Use NoXID in stead of None. 2013-12-29 08:59:38 +01:00
Kim Woelders 1294510ef2 Avoid redundant calls of XGetWindowAttributes (eobjs). 2013-11-24 16:37:17 +01:00
Kim Woelders 4a0bcfccf5 Simplify registration of override-redirect windows. 2013-11-24 16:37:17 +01:00
Kim Woelders 30cb2101aa Still more double to float. 2013-07-08 00:20:44 +02:00
Kim Woelders 3d03033e7f Some more double to float. 2013-07-08 00:05:20 +02:00
Kim Woelders b1f49c7273 No need for double - change to float. 2013-07-07 23:35:10 +02:00
Kim Woelders fea24f3376 CM: Fix startup after recent changes.
If the first millisecond time sample (difference) was "negative"
(sign change every ~23 days), CM rendering would be skipped.

SVN revision: 84385
2013-02-26 15:45:45 +00:00
Kim Woelders 76e6fdf360 CM: Fix override-redirect window registration detail.
When CM was enabled after start, mapped override-redirect windows weren't
picked up.

SVN revision: 84349
2013-02-24 18:57:45 +00:00
Kim Woelders 25069baced Cosmetics.
SVN revision: 84009
2013-02-17 00:19:48 +00:00
Kim Woelders 8ae20c987f Run composite rendering to screen separately from animators/idlers/timers.
Defer rendering if time since last is less than frame rate.
This reduces CPU usage somewhat in various situations.

SVN revision: 83995
2013-02-16 14:18:53 +00:00
Kim Woelders a8fa1734d3 CM: Set destination clip when rendering compositing buffer to screen.
This seems to reduce CPU usage by a factor of three on my Xorg 1.13.1(?).

SVN revision: 81817
2012-12-28 16:04:24 +00:00
Kim Woelders 51a19d26e7 Introduce new animation engine.
Based on work by Daniel Manjarres.

One of the major changes is to eliminate the "TimedLoop" construction
where we have "local" animation loops, in which we don't pass through
the main event handler.

SVN revision: 80542
2012-12-09 10:03:07 +00:00
Kim Woelders f244c9a479 Debug tweaks.
SVN revision: 77011
2012-09-22 08:29:15 +00:00
Kim Woelders 083ef4dd35 Cosmetics.
SVN revision: 77010
2012-09-22 08:29:11 +00:00
Kim Woelders a234e829ec Remove incorrect __UNUSED__.
SVN revision: 77009
2012-09-22 08:29:02 +00:00
Kim Woelders 5645b01624 Remove unnecessary code in ECompMgrWinFadeIn().
Doesn't seem to do anything useful (not entirely sure though).

SVN revision: 75032
2012-08-09 07:11:56 +00:00
Kim Woelders 94acd0b61d Improve fading debug logging.
SVN revision: 75031
2012-08-09 07:11:52 +00:00
Kim Woelders 00bba77795 Fix (if experimenting with USE_DESK_EXPOSE).
SVN revision: 73453
2012-07-07 14:05:53 +00:00
Kim Woelders a67f6fbe4e Expose ECompMgrWinSetOpacity() - call via EobjChangeOpacityNow().
SVN revision: 70946
2012-05-12 16:11:50 +00:00
Kim Woelders a115784797 Minor tweak around ECompMgrGetRootBuffer().
SVN revision: 66975
2012-01-08 12:54:15 +00:00
Kim Woelders af5dcb3987 Change some longs to ints where long is not needed.
SVN revision: 66973
2012-01-08 12:54:08 +00:00
Kim Woelders cde260fa56 CM - Fix rendering of shaped override-redirect windows.
SVN revision: 60011
2011-06-06 22:14:59 +00:00
Kim Woelders 5501bee1cc Magnifier tweaks.
Do a delayed repaint after switching off CM.
Add 'u' option to update continuously when CM is off.

SVN revision: 59398
2011-05-15 10:58:27 +00:00
Kim Woelders bc582d5de5 Remove compositing resize fixup hack for old Xorgs.
SVN revision: 56964
2011-02-12 16:43:50 +00:00
Kim Woelders 4e4a1a3096 Correct recent composite/shape fixes and fix some more related issues.
SVN revision: 53881
2010-10-25 17:45:01 +00:00
Kim Woelders a0cd34e2d6 Fix compositing bug (shaped ghost windows).
Moving the magnifier when theme has shaped borders was causing major uglyness.

SVN revision: 53834
2010-10-24 14:33:17 +00:00
Kim Woelders e499558af7 Fix rendering of translucent shaped windows.
Once upon a time this did work. It looks like
XRenderComposite(... PictOpOver ...) no longer respects the shape of
a window based source picture. Setting clip on it seems entirely broken.
There were problems anyway when setting use_name_pixmap, and this fix
seems to take care of it all.

SVN revision: 52655
2010-09-23 21:49:24 +00:00
Kim Woelders 24e722480a Add ECompMgrWinGetAlphaPict().
SVN revision: 51491
2010-08-21 14:39:57 +00:00
Kim Woelders 4ac03926da Adjustments for indent 2.2.11.
SVN revision: 50909
2010-08-08 19:03:34 +00:00
Kim Woelders 8551c41582 CM: Skip windows with empty shape.
Windows with empty shape seem to cause rendering artifacts, e.g.
in pager hiwin when the small pager tooltip images have empty shape.

AFAICT windows with empty shape should be handled properly by the
CM... server bug? Anyway, might as well skip them entirely.

SVN revision: 47921
2010-04-11 11:43:00 +00:00
Kim Woelders 3cdedaec13 CM: Change some more debug message conditions.
SVN revision: 47172
2010-03-13 09:37:02 +00:00
Kim Woelders 68d7d4196b CM: Handle override-redirect window shape changes.
SVN revision: 46968
2010-03-07 22:53:05 +00:00
Kim Woelders ff5cfb27c0 CM: Change some debug message conditions.
SVN revision: 46967
2010-03-07 22:53:03 +00:00
Kim Woelders 7c514a454a Remove some redundant checks.
SVN revision: 45019
2010-01-10 17:17:08 +00:00