[x11spice,09/10] Explicitly call ConfigNotify() on the root window in crtc_resize().

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

Details

Message ID 20190916191333.27139-10-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>

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@codeweavers.com>
---
 spice-video-dummy/src/display.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

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;
 }