diff options
author | Pavel Grunt <pgrunt@redhat.com> | 2015-07-30 13:51:44 +0200 |
---|---|---|
committer | Pavel Grunt <pgrunt@redhat.com> | 2015-08-03 11:16:51 +0200 |
commit | 45d013913710110efd19f86fd2e54d38adc1a8d4 (patch) | |
tree | 245be0a3cac17c1f18705ebf9d74943a342679c7 | |
parent | 8b0cd321d5a4d08ccba5845c5f2206e6f8032c1d (diff) |
Notify about existence of monitor for all display channels
Windows guest can have disabled display on the display chanel #0, in
that case it will not be listed in virt-viewer's "View->Displays" menu
Resolves:
https://bugs.freedesktop.org/show_bug.cgi?id=91489
-rw-r--r-- | src/channel-display.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/channel-display.c b/src/channel-display.c index e3f03fc..752d69d 100644 --- a/src/channel-display.c +++ b/src/channel-display.c @@ -809,10 +809,8 @@ static void spice_display_channel_up(SpiceChannel *channel) out->marshallers->msgc_display_init(out->marshaller, &init); spice_msg_out_send_internal(out); - /* if we are not using monitors config, notify of existence of - this monitor */ - if (channel->priv->channel_id != 0) - g_coroutine_object_notify(G_OBJECT(channel), "monitors"); + /* notify of existence of this monitor */ + g_coroutine_object_notify(G_OBJECT(channel), "monitors"); if (spice_channel_test_capability(channel, SPICE_DISPLAY_CAP_PREF_COMPRESSION) && preferred_compression > SPICE_IMAGE_COMPRESS_INVALID) { |