xserver/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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
..
.gitignore
busfault.h
callback.h Avoid starting a comment with */* 2014-07-17 10:19:52 -07:00
client.h
closestr.h
closure.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
colormap.h dix: Unexport various implementation details 2015-07-08 16:40:57 -04:00
colormapst.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
cursor.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
cursorstr.h cursor: drop ARGB_CURSOR 2015-06-30 12:17:51 +10:00
dbus-core.h xfree86: drop double-typedef of DBusConnection 2014-11-12 10:25:00 +10:00
dix-config-apple-verbatim.h
dix-config.h.in Remove non-smart scheduler. Don't require setitimer. 2015-12-01 13:54:54 -05:00
dix.h Missing parens in REQUEST_FIXED_SIZE macro [CVE-2014-8092 pt. 5] 2014-12-09 11:28:07 -08:00
dixaccess.h
dixevents.h
dixfont.h dixfont.h: Include fontutil.h before GetGlyphs is #defined 2015-08-17 18:50:00 -07:00
dixfontstr.h
dixfontstubs.h
dixgrabs.h Avoid starting a comment with */* 2014-07-17 10:19:52 -07:00
dixstruct.h Remove non-smart scheduler. Don't require setitimer. 2015-12-01 13:54:54 -05:00
eventconvert.h
events.h
eventstr.h Input: Add focus-in event source 2015-11-24 11:36:34 +10:00
exevents.h
extension.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
extinit.h Make PseudoramiXExtensionInit() prototype more generally available 2015-03-16 16:56:17 +00:00
extnsionst.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
gc.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
gcstruct.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
globals.h
glx_extinit.h
hotplug.h config: Replace OdevAttributes linked list with struct 2014-07-17 17:10:48 -07:00
input.h dix: Add unaccelerated valuators to the ValuatorMask 2015-05-20 12:44:58 +10:00
inputstr.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
inpututils.h Input: Add DeviceEventSource enum 2015-11-24 11:36:32 +10:00
kdrive-config.h.in kdrive: Delete unused TOUCHSCREEN define. 2015-10-06 10:43:05 -04:00
list.h Fix uninitialized variable warnings reported by clang 2016-01-06 09:42:59 -05:00
Makefile.am dix: Unexport various implementation details 2015-07-08 16:40:57 -04:00
misc.h configurable maximum number of clients 2015-08-24 00:00:18 -07:00
miscstruct.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
nonsdk_extinit.h Make PseudoramiXExtensionInit() prototype more generally available 2015-03-16 16:56:17 +00:00
opaque.h configurable maximum number of clients 2015-08-24 00:00:18 -07:00
optionstr.h
os.h Use unique logfile names when starting server with -displayfd 2016-01-05 14:51:16 -05:00
pixmap.h prime: add rotation support for offloaded outputs (v2) 2015-07-08 11:13:09 -07:00
pixmapstr.h prime: add rotation support for offloaded outputs (v2) 2015-07-08 11:13:09 -07:00
privates.h
probes.h Get rid of const warnings in XSERVER_INPUT_EVENT dtrace probe calls 2015-02-10 18:14:44 -08:00
property.h dix: Remove redundant ChangeWindowProperty 2015-11-30 10:24:53 -05:00
propertyst.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
protocol-versions.h randr: Add Monitor support (v1.1) 2015-03-31 12:32:04 +10:00
ptrveloc.h
region.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
regionstr.h dix: make RegionInit legal C++ 2015-01-23 10:35:49 -08:00
registry.h XSERVER_DTRACE needs request names from registry too 2014-09-22 12:00:46 -07:00
resource.h dix: export ResourceClientBits() 2015-09-01 20:11:26 -07:00
rgb.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
screenint.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
scrnintstr.h dix: Restore PaintWindow screen hook 2015-07-08 16:41:28 -04:00
selection.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
servermd.h dix: Fix image byte order on big endian hardware 2015-05-07 14:03:50 -04:00
site.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
swaprep.h dix: Unexport various implementation details 2015-07-08 16:40:57 -04:00
swapreq.h dix: Unexport various implementation details 2015-07-08 16:40:57 -04:00
systemd-logind.h
validate.h
version-config.h.in
window.h dix: Add hybrid full-size/empty-clip mode to SetRootClip 2016-02-22 13:26:31 -05:00
windowstr.h dix: unifdef pWin->rootlessUnhittable 2015-07-08 16:41:28 -04:00
XIstubs.h
xkb-config.h.in
xkbfile.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xkbrules.h
xkbsrv.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xkbstr.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xorg-config.h.in xfree86: Remove the memory of MTRR awareness 2014-09-16 11:58:53 -04:00
xorg-server.h.in kdrive: Delete unused TOUCHSCREEN define. 2015-10-06 10:43:05 -04:00
Xprintf.h
xserver-properties.h
xsha1.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xwin-config.h.in