diff options
Diffstat (limited to 'gtk/channel-port.c')
-rw-r--r-- | gtk/channel-port.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/channel-port.c b/gtk/channel-port.c index 11948bb..0a8b37f 100644 --- a/gtk/channel-port.c +++ b/gtk/channel-port.c @@ -249,9 +249,12 @@ static void port_handle_init(SpiceChannel *channel, SpiceMsgIn *in) g_return_if_fail(c->name == NULL); c->name = g_strdup((gchar*)init->name); - g_object_notify(G_OBJECT(channel), "port-name"); port_set_opened(self, init->opened); + if (init->opened) + emit_main_context(channel, SPICE_PORT_EVENT, SPICE_PORT_EVENT_OPENED); + + g_object_notify_main_context(G_OBJECT(channel), "port-name"); } /* coroutine context */ |