[Spice-devel] [spice-protocol PATCH v2] Add monitors_config escape for qxl-win driver

Sandy Stutsman sstutsma at redhat.com
Mon Jun 22 16:28:54 PDT 2015


Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1202419

A monitors_config message needs to be sent from the guest to the client
when monitors are ordered with the "Set Resolution" applet.
---
I think it is best to keep the Windows driver escape structures together 
in the qxl_windows.h file
Change from v1:
* removed unused structure members
---
spice/qxl_windows.h | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/spice/qxl_windows.h b/spice/qxl_windows.h
index d1df684..b4d5a58 100644
--- a/spice/qxl_windows.h
+++ b/spice/qxl_windows.h
@@ -7,6 +7,7 @@

enum {
QXL_ESCAPE_SET_CUSTOM_DISPLAY = 0x10001,
+ QXL_ESCAPE_MONITOR_CONFIG
};

typedef struct SPICE_ATTR_PACKED QXLEscapeSetCustomDisplay {
@@ -15,6 +16,13 @@ typedef struct SPICE_ATTR_PACKED 
QXLEscapeSetCustomDisplay {
uint32_t bpp;
} QXLEscapeSetCustomDisplay;

+typedef struct SPICE_ATTR_PACKED QXLEscapeMonitorConfig {
+ uint32_t xpos;
+ uint32_t ypos;
+ uint32_t xres;
+ uint32_t yres;
+} QXLEscapeMonitorConfig;
+
#include

#endif /* _H_QXL_WINDOWS */
-- 
1.9.5.msysgit.0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150622/c1e71244/attachment-0001.html>


More information about the Spice-devel mailing list