xserver-multidpi/randr
Tobias Droste c7e4222c9a randr: set error numbers of resource types in RRExtenstionInit() (V2)
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=30367

Currently the ddx calls xf86RandR12Init()
  (-> RRScreenInit()
     -> RRInit()
       -> RRModeInit()
       -> RRCrtcInit()
       -> RROutputInit())
before RRExtensionInit() is called. This causes RRErrorBase
being 0 while setting resource type error values (resource types:
RROutput, RRMode and RRCrtc). The fix moves the setting of error
values to own functions which are called in RRExtensionInit()
to get the right RRErrorBase.

V2: With header file

Signed-off-by: Tobias Droste <tdroste@gmx.de>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2010-09-29 14:41:53 -07:00
..
Makefile.am Export rrtransform.h as needed by randrstr.h 2008-11-24 13:24:41 -08:00
mirandr.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
randr.c randr: set error numbers of resource types in RRExtenstionInit() (V2) 2010-09-29 14:41:53 -07:00
randrstr.h randr: set error numbers of resource types in RRExtenstionInit() (V2) 2010-09-29 14:41:53 -07:00
rrcrtc.c randr: set error numbers of resource types in RRExtenstionInit() (V2) 2010-09-29 14:41:53 -07:00
rrdispatch.c Eliminate boilerplate around client->noClientException. 2010-05-13 17:14:07 -07:00
rrinfo.c Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
rrmode.c randr: set error numbers of resource types in RRExtenstionInit() (V2) 2010-09-29 14:41:53 -07: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 Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
rrscreen.c Remove more superfluous if(p) checks around free(p) 2010-06-06 20:27:18 +07:00
rrsdispatch.c randr: switch to byte counting functions 2009-07-14 10:14:01 +10:00
rrtransform.c rotation: fix cursor and overlap of one pixel. 2010-06-22 11:38:30 -07:00
rrtransform.h Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
rrxinerama.c Move each screen's root-window pointer into ScreenRec. 2010-06-03 14:03:23 -07:00