[Spice-devel] [PATCH x11spice 7/8] Call xf86DPMSInit() in DUMMYScreenInit().

Henri Verbeet hverbeet at codeweavers.com
Tue Feb 18 19:53:36 UTC 2020


This is probably not strictly needed, but it's easy and gets rid of the
"Xlib:  extension "DPMS" missing on display ":2"." message.

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 spice-video-dummy/src/spicedummy_driver.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/spice-video-dummy/src/spicedummy_driver.c b/spice-video-dummy/src/spicedummy_driver.c
index 18e96ce..543a3b4 100644
--- a/spice-video-dummy/src/spicedummy_driver.c
+++ b/spice-video-dummy/src/spicedummy_driver.c
@@ -623,6 +623,8 @@ DUMMYScreenInit(SCREEN_INIT_ARGS_DECL)
     if (!xf86CrtcScreenInit(pScreen))
         return FALSE;
 
+    xf86DPMSInit(pScreen, xf86DPMSSet, 0);
+
     if (dPtr->glamor && !glamor_init(pScreen, glamor_flags)) {
         xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
                    "Failed to initialise glamor at ScreenInit() time.\n");
-- 
2.11.0



More information about the Spice-devel mailing list