mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-gtk
synced 2026-01-15 13:57:04 +00:00
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:
parent
5b6513e99f
commit
2fcd74bbe8
@ -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 */
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user