gtk: don't send MonitorConfig after agent start

We don't know yet what will be the guest previous configuration.

Ie, what should we send otherwise? Current hardware configuration?
This works badly with windowed mode, where we expect the same windows
to be displayed on reconnection.
This commit is contained in:
Marc-André Lureau 2011-04-08 15:56:06 +02:00
parent 5b6513e99f
commit 2fcd74bbe8
2 changed files with 5 additions and 3 deletions

View File

@ -1045,9 +1045,10 @@ static void agent_start(SpiceMainChannel *channel)
spice_msg_out_send_internal(out);
spice_msg_out_unref(out);
agent_announce_caps(channel);
agent_monitors_config(channel);
agent_send_msg_queue(channel);
if (c->agent_connected) {
agent_announce_caps(channel);
agent_send_msg_queue(channel);
}
}
/* coroutine context */

View File

@ -1353,6 +1353,7 @@ static void mark(SpiceChannel *channel, gint mark, gpointer data)
SPICE_DEBUG("widget mark: %d, channel %d", mark, d->channel_id);
d->mark = mark;
spice_main_set_display_enabled(d->main, d->channel_id, d->mark != 0);
if (mark != 0 && gtk_widget_get_window(GTK_WIDGET(display)))
gdk_window_invalidate_rect(gtk_widget_get_window(GTK_WIDGET(display)),
NULL, FALSE);