mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-27 23:00:54 +00:00
Support Spice controller "auto-display-res" flag
The controller "auto-display-res" flag should be use to reconfigure guest to match client configuration. This is what the --fullscreen=auto-conf option is already made for. https://bugzilla.redhat.com/show_bug.cgi?id=967154
This commit is contained in:
parent
9ddce05ce7
commit
df30f9730d
@ -547,11 +547,10 @@ spice_ctrl_notified(SpiceCtrlController *ctrl,
|
||||
virt_viewer_app_set_title(app, g_value_get_string(&value));
|
||||
} else if (g_str_equal(pspec->name, "display-flags")) {
|
||||
guint flags = g_value_get_uint(&value);
|
||||
gboolean fullscreen = flags & CONTROLLER_SET_FULL_SCREEN;
|
||||
gboolean auto_res = flags & CONTROLLER_AUTO_DISPLAY_RES;
|
||||
gboolean fullscreen = !!(flags & CONTROLLER_SET_FULL_SCREEN);
|
||||
gboolean auto_res = !!(flags & CONTROLLER_AUTO_DISPLAY_RES);
|
||||
g_object_set(G_OBJECT(self), "fullscreen", fullscreen, NULL);
|
||||
g_debug("unimplemented resize-guest %d", auto_res);
|
||||
/* g_object_set(G_OBJECT(self), "resize-guest", auto_res, NULL); */
|
||||
g_object_set(G_OBJECT(self), "fullscreen-auto-conf", auto_res, NULL);
|
||||
} else if (g_str_equal(pspec->name, "menu")) {
|
||||
spice_ctrl_menu_updated(self);
|
||||
} else if (g_str_equal(pspec->name, "hotkeys")) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user