xserver/hw/kdrive/src
Daniel Stone e957a2e5dd dix: Add hybrid full-size/empty-clip mode to SetRootClip
216bdbc735 removed the SetRootClip call in the XWayland output-hotplug
handler when running rootless (e.g. as a part of Weston/Mutter), since
the root window has no storage, so generating exposures will result in
writes to invalid memory.

Unfortunately, preventing the segfault also breaks sprite confinement.
SetRootClip updates winSize and borderSize for the root window, which
when combined with RRScreenSizeChanged calling ScreenRestructured,
generates a new sprite-confinment area to update it to the whole screen.

Removing this call results in the window geometry being reported
correctly, but winSize/borderSize never changing from their values at
startup, i.e. out of sync with the root window geometry / screen
information in the connection info / XRandR.

This patch introduces a hybrid mode, where we update winSize and
borderSize for the root window, enabling sprite confinement to work
correctly, but keep the clip emptied so exposures are never generated.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Tested-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
2016-02-22 13:26:31 -05:00
..
Makefile.am Build fbcmap_mi.c once, rather than once for each DDX 2014-03-27 14:34:06 +00:00
fourcc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kcmap.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
kdrive.c dix: Add hybrid full-size/empty-clip mode to SetRootClip 2016-02-22 13:26:31 -05:00
kdrive.h exa, kdrive: Remove redundant BitsPerPixel macros 2014-10-08 10:10:39 +02:00
kinfo.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kinput.c kdrive: set "evdev" driver for input devices automatically, if available. 2016-02-08 15:04:20 -05:00
kmode.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
kshadow.c Convert hw/kdrive to new *allocarray functions 2015-04-21 16:58:08 -07:00
kxv.c Convert hw/kdrive to new *allocarray functions 2015-04-21 16:58:08 -07:00
kxv.h kdrive: Remove a dead struct. 2014-08-07 12:39:53 -07:00