mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-08 13:07:13 +00:00
Don't rely on spice-gtk to do any alignment of displays. This patch sets the disable-display-align property on the SpiceMainChannel, and makes the VirtViewerSession in charge of doing all alignment. This means that every display has to tell the VirtViewerSession when its "virtual monitor" has changed configuration (and wants to reconfigure its display on the guest), rather than sending it directly to the Main Channel. The session will then align the displays (if necessary), and the spice session will send down new configuration for all displays at once. This solves a couple of problems: 1. It allows the session to send down absolute coordinates only in the case where *all* windows are fullscreen (so that we can still support vertically-stacked displays, etc). But it auto-aligns displays if only a subset of the displays are in fullscreen mode. This solves the problem of overlapping regions on different displays when one monitor is in fullscreen because only one monitor's configuration was updated and the others were not aligned. 2. Allows us to always align based on the current position of each display. This contrasts with the earlier behavior where the position used for alignment was the window's position at the time when it was last resized. This caused displays to be arranged in a seemingly non-deterministic manner if one window was moved and then another window was resized (causing a display re-configuration). Solves rhbz#1002156 |
||
|---|---|---|
| .. | ||
| view | ||
| debug-helper.c | ||
| gbinding.c | ||
| gbinding.h | ||
| Makefile.am | ||
| remote-viewer-main.c | ||
| remote-viewer.c | ||
| remote-viewer.h | ||
| virt-glib-compat.c | ||
| virt-glib-compat.h | ||
| virt-gtk-compat.h | ||
| virt-viewer-about.xml | ||
| virt-viewer-app.c | ||
| virt-viewer-app.h | ||
| virt-viewer-auth.c | ||
| virt-viewer-auth.h | ||
| virt-viewer-auth.xml | ||
| virt-viewer-display-spice.c | ||
| virt-viewer-display-spice.h | ||
| virt-viewer-display-vnc.c | ||
| virt-viewer-display-vnc.h | ||
| virt-viewer-display.c | ||
| virt-viewer-display.h | ||
| virt-viewer-enums.c.etemplate | ||
| virt-viewer-enums.h.etemplate | ||
| virt-viewer-events.c | ||
| virt-viewer-events.h | ||
| virt-viewer-file.c | ||
| virt-viewer-file.h | ||
| virt-viewer-main.c | ||
| virt-viewer-notebook.c | ||
| virt-viewer-notebook.h | ||
| virt-viewer-session-spice.c | ||
| virt-viewer-session-spice.h | ||
| virt-viewer-session-vnc.c | ||
| virt-viewer-session-vnc.h | ||
| virt-viewer-session.c | ||
| virt-viewer-session.h | ||
| virt-viewer-util.c | ||
| virt-viewer-util.h | ||
| virt-viewer-window.c | ||
| virt-viewer-window.h | ||
| virt-viewer.c | ||
| virt-viewer.h | ||
| virt-viewer.manifest | ||
| virt-viewer.rc.in | ||
| virt-viewer.xml | ||
| windows-cmdline-wrapper.c | ||