From 03035cf69eb2bfa701b7cebd629ebd4a76129f03 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Thu, 6 Mar 2014 14:12:52 -0600 Subject: [PATCH] Revert "Don't resize guest display on zoom change" This reverts commit 895ef8029e794e7b74a45f27c7c741d1332bc02b. --- src/virt-viewer-display-spice.c | 15 +-------------- 1 file changed, 1 insertion(+), 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);