[Spice-devel] [PATCH x11spice 09/10] Explicitly call ConfigNotify() on the root window in crtc_resize().
Jeremy White
jwhite at codeweavers.com
Mon Sep 16 19:13:32 UTC 2019
From: Henri Verbeet <hverbeet at codeweavers.com>
So that any GL clients on the root window (e.g. compositors) know they
need to resize their buffers.
Is this a hack? It seems like it; other drivers don't appear to need to
explicitly call this. Without it though, compositors don't handle screen
resizes well.
Signed-off-by: Jeremy White <jwhite at codeweavers.com>
---
spice-video-dummy/src/display.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/spice-video-dummy/src/display.c b/spice-video-dummy/src/display.c
index b83869bb..786e6916 100644
--- a/spice-video-dummy/src/display.c
+++ b/spice-video-dummy/src/display.c
@@ -43,6 +43,8 @@ crtc_resize(ScrnInfoRec * scrn, int width, int height)
scrn->virtualX = width;
scrn->virtualY = height;
+ screen->ConfigNotify(screen->root, 0, 0, width, height, screen->root->borderWidth, None);
+
return TRUE;
}
--
2.20.1
More information about the Spice-devel
mailing list