The dixRegisterScreenSpecificPrivateKey function ignores attempts to register
the same key twice. Unlike dixRegisterPrivateKey, it can not use the
"initialized" flag because there is no good place where to set it to FALSE
during reset.
Setting it before CloseScreen makes the keys unuseable in
Hi,
Those are two alternative fixes for
https://bugs.freedesktop.org/show_bug.cgi?id=108762
Either of them alone fixes the bug.
Brief description of the bug: Sometimes the screen-specific privates need to
be accessed in CloseScreen, but their `initialized` flag is already FALSE which
causes
The dixRegisterPrivateKey and dixRegisterScreenSpecificPrivateKey functions
must ignore key if it is being registered for second time. At the same time,
they must accept the key again after internal restart. To achive that, the
"initialized" flag existed and was cleared in dixResetPrivates and