summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabiano FidĂȘncio <fidencio@redhat.com>2015-06-03 22:16:36 +0200
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-06-09 15:48:34 +0200
commit28312b8d1e287a320851e8828825f2ca138d8b0b (patch)
tree5fbc8399f4bcdc7534ba380b199ca0744da2d099
parent4a8eae7d9bd3d96baad897475ce1497922487b20 (diff)
spice-widget: Do not update display when resize-guest is disabled
Updating the display causes weird behaviors in virt-viewer, like re-resizing to a previous monitor config when, after changing the display resolution (through System > PReferences > Displays). the agent reconnects. It is not perfect yet, because when the agent reconnects the guest resizes to the previous config and switch to the proper one, but this seems more like an agent bug than a spice-gtk one.
-rw-r--r--src/spice-widget.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/spice-widget.c b/src/spice-widget.c
index b9c4972..260fda5 100644
--- a/src/spice-widget.c
+++ b/src/spice-widget.c
@@ -293,10 +293,6 @@ static void update_monitor_area(SpiceDisplay *display)
goto whole;
}
- if (!d->resize_guest_enable)
- spice_main_update_display(d->main, get_display_id(display),
- c->x, c->y, c->width, c->height, FALSE);
-
update_area(display, c->x, c->y, c->width, c->height);
g_clear_pointer(&monitors, g_array_unref);
return;