summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2014-03-06 14:12:52 -0600
committerJonathon Jongsma <jjongsma@redhat.com>2014-03-06 14:12:52 -0600
commit03035cf69eb2bfa701b7cebd629ebd4a76129f03 (patch)
treef3c49a7ca6e44ea68e25523088c13729ed214366
parent8f0dd93e8f4699d572fd5aa6308598e9798e7408 (diff)
downloadvirt-viewer-03035cf69eb2bfa701b7cebd629ebd4a76129f03.tar.gz
virt-viewer-03035cf69eb2bfa701b7cebd629ebd4a76129f03.tar.xz
virt-viewer-03035cf69eb2bfa701b7cebd629ebd4a76129f03.zip
Revert "Don't resize guest display on zoom change"
This reverts commit 895ef8029e794e7b74a45f27c7c741d1332bc02b.
-rw-r--r--src/virt-viewer-display-spice.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/virt-viewer-display-spice.c b/src/virt-viewer-display-spice.c
index e1f7335..d13fbda 100644
--- a/src/virt-viewer-display-spice.c
+++ b/src/virt-viewer-display-spice.c
@@ -190,22 +190,9 @@ virt_viewer_display_spice_mouse_grab(SpiceDisplay *display G_GNUC_UNUSED,
static void
virt_viewer_display_spice_size_allocate(VirtViewerDisplaySpice *self,
- GtkAllocation *allocation,
+ GtkAllocation *allocation G_GNUC_UNUSED,
gpointer data G_GNUC_UNUSED)
{
- GtkRequisition preferred;
- gtk_widget_get_preferred_size(GTK_WIDGET(self), NULL, &preferred);
-
- /* when the window gets resized due to a change in zoom level, we don't want
- * to re-size the guest display. So if we get an allocation event that
- * resizes the window to the size it already wants to be (based on desktop
- * size and zoom level), just return early
- */
- if (preferred.width == allocation->width
- && preferred.height == allocation->height) {
- return;
- }
-
if (self->priv->auto_resize != AUTO_RESIZE_NEVER)
virt_viewer_display_spice_monitor_geometry_changed(self);