mutter/clutter/glx
Robert Bragg 771348b369 x11: minimize nasty artefacts when resizing windows
This is a workaround for a race condition when resizing windows while
there are in-flight glXCopySubBuffer blits happening.

The problem stems from the fact that rectangles for the blits are
described relative to the bottom left of the window and because we can't
guarantee control over the X window gravity used when resizing so the
gravity is typically NorthWest not SouthWest.

This means if you grow a window vertically the server will make sure to
place the old contents of the window at the top-left/north-west of your
new larger window, but that may happen asynchronous to GLX preparing to
do a blit specified relative to the bottom-left/south-west of the window
(based on the old smaller window geometry).

When the GLX issued blit finally happens relative to the new bottom of
your window, the destination will have shifted relative to the top-left
where all the pixels you care about are so it will result in a nasty
artefact making resizing look very ugly!

We can't currently fix this completely, in-part because the window
manager tends to trample any gravity we might set.  This workaround
instead simply disables blits for a while if we are notified of any
resizes happening so if the user is resizing a window via the window
manager then they may see an artefact for one frame but then we will
fallback to redrawing the full stage until the cooling off period is
over.
2010-09-29 15:12:59 +01:00
..
clutter-backend-glx.c Hide internal glx and egl(x) backend symbols. 2010-08-23 11:49:07 +01:00
clutter-backend-glx.h Hide internal glx and egl(x) backend symbols. 2010-08-23 11:49:07 +01:00
clutter-event-glx.c Hide internal glx and egl(x) backend symbols. 2010-08-23 11:49:07 +01:00
clutter-event-glx.h Hide internal glx and egl(x) backend symbols. 2010-08-23 11:49:07 +01:00
clutter-glx-texture-pixmap.c clutter-{glx,x11}-texture-pixmap: Use CoglTexturePixmapX11 2010-06-22 12:22:48 +01:00
clutter-glx-texture-pixmap.h docs: Documentation fixes 2010-03-02 11:12:32 +00:00
clutter-glx.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
clutter-stage-glx.c x11: minimize nasty artefacts when resizing windows 2010-09-29 15:12:59 +01:00
clutter-stage-glx.h Hide internal glx and egl(x) backend symbols. 2010-08-23 11:49:07 +01:00
Makefile.am Add -DCOGL_ENABLE_EXPERIMENTAL_API to Makefiles for Cogl and x11/glx 2010-06-22 12:22:47 +01:00