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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Henri Verbeet <hverbeet@xxxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxx>
---
 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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]