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:
parent
dcf9b5ae18
commit
53574e4f4f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue