[PATCH] dix: Ignore initialized flag for screen-specific privates

2018-11-23 Thread Michal Srb
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

[PATCH 0/2] Allow using of screen-specific privates in CloseScreen

2018-11-23 Thread Michal Srb
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

[PATCH] dix: Track DevPrivateKey initialization by generation

2018-11-23 Thread Michal Srb
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