[Spice-commits] 2 commits - gtk/spice-widget.c spice-common
Marc-André Lureau
elmarco at kemper.freedesktop.org
Thu Feb 7 14:00:52 PST 2013
gtk/spice-widget.c | 30 +++++++++++++++++-------------
spice-common | 2 +-
2 files changed, 18 insertions(+), 14 deletions(-)
New commits:
commit d35f58249742caf1ace0fff5bde770871fbbd676
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Wed Feb 6 22:44:21 2013 +0100
display: keep monitor config updated if resize-guest is disabled
https://bugzilla.redhat.com/show_bug.cgi?id=908057
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index 4f2f6c4..42d0cdd 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -265,6 +265,19 @@ static void set_monitor_ready(SpiceDisplay *self, gboolean ready)
update_ready(self);
}
+static gint get_display_id(SpiceDisplay *display)
+{
+ SpiceDisplayPrivate *d = SPICE_DISPLAY_GET_PRIVATE(display);
+
+ /* supported monitor_id only with display channel #0 */
+ if (d->channel_id == 0 && d->monitor_id >= 0)
+ return d->monitor_id;
+
+ g_return_val_if_fail(d->monitor_id <= 0, -1);
+
+ return d->channel_id;
+}
+
static void update_monitor_area(SpiceDisplay *display)
{
SpiceDisplayPrivate *d = SPICE_DISPLAY_GET_PRIVATE(display);
@@ -300,6 +313,10 @@ static void update_monitor_area(SpiceDisplay *display)
goto whole;
}
+ if (!d->resize_guest_enable)
+ spice_main_set_display(d->main, get_display_id(display),
+ c->x, c->y, c->width, c->height);
+
update_area(display, c->x, c->y, c->width, c->height);
g_clear_pointer(&monitors, g_array_unref);
return;
@@ -992,19 +1009,6 @@ static void update_mouse_grab(SpiceDisplay *display)
try_mouse_ungrab(display);
}
-static gint get_display_id(SpiceDisplay *display)
-{
- SpiceDisplayPrivate *d = SPICE_DISPLAY_GET_PRIVATE(display);
-
- /* supported monitor_id only with display channel #0 */
- if (d->channel_id == 0 && d->monitor_id >= 0)
- return d->monitor_id;
-
- g_return_val_if_fail(d->monitor_id <= 0, -1);
-
- return d->channel_id;
-}
-
static void recalc_geometry(GtkWidget *widget)
{
SpiceDisplay *display = SPICE_DISPLAY(widget);
commit 98ecf9e9064ba2a6318165b43fc693a06d0a1b3e
Author: Marc-André Lureau <marcandre.lureau at redhat.com>
Date: Thu Feb 7 19:54:52 2013 +0100
Update spice-common
diff --git a/spice-common b/spice-common
index df09927..149bb89 160000
--- a/spice-common
+++ b/spice-common
@@ -1 +1 @@
-Subproject commit df09927c3bb921f51a3a1f6ca09063bf44f1ee5b
+Subproject commit 149bb89adb0d7676c41085b3e41f07113e05c880
More information about the Spice-commits
mailing list