[x11spice,07/10] Call xf86DPMSInit() in DUMMYScreenInit().

Submitted by Jeremy White on Sept. 16, 2019, 7:13 p.m.

Details

Message ID 20190916191333.27139-8-jwhite@codeweavers.com
State New
Headers show
Series "Provide a simulated set of outputs and crtcs" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Jeremy White Sept. 16, 2019, 7:13 p.m.
From: Henri Verbeet <hverbeet@codeweavers.com>

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@codeweavers.com>
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
---
 spice-video-dummy/src/spicedummy_driver.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/spice-video-dummy/src/spicedummy_driver.c b/spice-video-dummy/src/spicedummy_driver.c
index 18e96cec..543a3b45 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");