mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-27 23:00:54 +00:00
When using client-side decorations, as well as in certain other situations (wayland, and windows in some cases), the window gradually resizes larger and larger. This is caused by a change in how gtk interprets the sizes passed to gtk_window_resize(), particularly when client-side decorations (CSD) are involved. For example, In the past this size was assumed to include the size of the CSD, but now it it assumes that the sizes only represent the size of the window's content, without any decorations. However, gtk_widget_get_preferred_size() (when called on a GtkWindow*), returns a size that includes the size of the CSD. So virt_viewer_window_queue_resize() was essentially growing the window by the size of the CSD every time it was called. To work around this issue, we need to calculate the preferred size of the window's child, not the size of the entire window (including CSD). Then we add the width of the window's border (just to be safe) and pass those values to gtk_window_resize(). |
||
|---|---|---|
| build-aux | ||
| data | ||
| docs | ||
| icons | ||
| man | ||
| po | ||
| src | ||
| tests | ||
| .mailmap | ||
| acinclude.m4 | ||
| AUTHORS.in | ||
| autobuild.sh | ||
| autogen.sh | ||
| cfg.mk | ||
| ChangeLog | ||
| configure.ac | ||
| COPYING | ||
| git.mk | ||
| GNUmakefile | ||
| intltool-extract.in | ||
| intltool-merge.in | ||
| intltool-update.in | ||
| maint.mk | ||
| Makefile.am | ||
| mingw-virt-viewer.spec.in | ||
| NEWS | ||
| README | ||
| virt-viewer.spec.in | ||
Virt Viewer =========== Virt Viewer provides a graphical viewer for the guest OS display. At this time is supports guest OS using the VNC or SPICE protocols. Further protocols may be supported in the future as user demand dictates. The viewer can connect directly to both local and remotely hosted guest OS, optionally using SSL/TLS encryption. Virt Viewer is the GTK3 application. Virt Viewer 3.0 was the last release that supported GTK2. Virt Viewer uses the GTK-VNC (>= 0.4.0) widget to provide a display of the VNC protocol, which is available from http://gtk-vnc.sourceforge.net/ Virt Viewer uses the SPICE-GTK (>= 0.30) widget to provide a display of the SPICE protocol, which is available from: http://www.spice-space.org/download.html Use of either SPICE-GTK or GTK-VNC can be disabled at time of configure, with --without-gtk-vnc or --without-spice-gtk respectively. Virt Viewer uses libvirt to lookup information about the guest OS display. This is available from http://libvirt.org/ Further information about the Virt Viewer application can be found on the Virt Manager website: http://virt-manager.org/ Feedback should be directed to the mailing list at http://virt-manager.org/mailinglist.html -- End