mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 13:28:08 +02:00
Xephyr/dri: register screen and window privates on init
Fixes assertion failure when calling dixSetPrivate
Debian bug#632549 <http://bugs.debian.org/632549>
Reported-and-tested-by: Mohammed Sameer <msameer@foolab.org>
Signed-off-by: Julien Cristau <jcristau@debian.org>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit a1dec7cd6a)
This commit is contained in:
parent
fa425363e3
commit
179ab444fd
1 changed files with 4 additions and 0 deletions
|
|
@ -1394,6 +1394,10 @@ ephyrDRIExtensionInit (ScreenPtr a_screen)
|
|||
EPHYR_LOG_ERROR ("failed to register DRI extension\n") ;
|
||||
goto out ;
|
||||
}
|
||||
if (!dixRegisterPrivateKey(&ephyrDRIScreenKeyRec, PRIVATE_SCREEN, 0))
|
||||
goto out ;
|
||||
if (!dixRegisterPrivateKey(&ephyrDRIWindowKeyRec, PRIVATE_WINDOW, 0))
|
||||
goto out ;
|
||||
screen_priv = calloc(1, sizeof (EphyrDRIScreenPrivRec)) ;
|
||||
if (!screen_priv) {
|
||||
EPHYR_LOG_ERROR ("failed to allocate screen_priv\n") ;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue