sna: Wrap use of dixPrivateKeyRegistered for uevents

SLED11 also requires us to poke around in the privates as it does not
provide the more recent privates API.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-09-18 15:28:09 +01:00
parent dcf9b5ae18
commit 53574e4f4f
1 changed files with 5 additions and 0 deletions

View File

@ -744,8 +744,13 @@ sna_uevent_init(ScrnInfoPtr scrn)
/* RandR will be disabled if Xinerama is active, and so generating
* RR hotplug events is then verboten.
*/
#if HAS_DIXREGISTERPRIVATEKEY
if (!dixPrivateKeyRegistered(rrPrivKey))
return;
#else
if (rrPrivKey == 0)
return;
#endif
if (!xf86GetOptValBool(sna->Options, OPTION_HOTPLUG, &hotplug))
from = X_DEFAULT, hotplug = TRUE;