xserver-multidpi/randr
Aaron Plattner fa425363e3 randr: Compare all the bytes in RRPostPendingProperties
RRPostPendingProperties tries to compare the pending and current
property values to decide whether they're actually changing.  However,
it does this using a memcmp that passes in pending_value->size as the
number of bytes.  This is actually the number of elements, where each
element is (pending_value->format / 8) bytes long.  This causes the
pending value to not be propagated if the first pending_value->size
bytes are the same and only the end of it is changing.

Fix this by computing the total number of bytes to compare in the
memcmp.

Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 08dfff92e8)
2011-08-04 22:56:58 -07:00
..
Makefile.am Revert "randr: Add sprite position transforms" 2011-02-23 11:18:12 -08:00
randr.c Revert "randr: Add per-crtc pixmaps" 2011-02-23 11:17:42 -08:00
randrstr.h Revert "randr: Add sprite position transforms" 2011-02-23 11:18:12 -08:00
rrcrtc.c randr: void function cannot return value 2011-06-06 12:39:10 -04:00
rrdispatch.c Send events that were missing from RRSelectInput 2011-05-28 17:25:58 -07:00
rrinfo.c Revert "randr: Add per-crtc pixmaps" 2011-02-23 11:17:42 -08:00
rrmode.c ProcRRCreateMode: fix use of uninitialised bytes valgrind error. 2011-02-14 09:12:59 +10:00
rroutput.c randr: set error numbers of resource types in RRExtenstionInit() (V2) 2010-09-29 14:41:53 -07:00
rrpointer.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
rrproperty.c randr: Compare all the bytes in RRPostPendingProperties 2011-08-04 22:56:58 -07:00
rrscreen.c randr: check rotated virtual size limits correctly 2011-05-28 17:29:41 -07:00
rrsdispatch.c Revert "randr: Hook up the new RandR 1.4 functionality" 2011-02-23 11:17:36 -08:00
rrtransform.c Revert "randr: Add sprite position transforms" 2011-02-23 11:18:12 -08:00
rrtransform.h Revert "randr: Add sprite position transforms" 2011-02-23 11:18:12 -08:00
rrxinerama.c Move each screen's root-window pointer into ScreenRec. 2010-06-03 14:03:23 -07:00