[Spice-devel] [PATCH vdagent-linux] vdagentd: send monitors config to currently active agent only
Marc-André Lureau
mlureau at redhat.com
Thu Nov 22 02:58:43 PST 2012
Hi
----- Mensaje original -----
> > + /* Send monitor config to currently active agent */
> > + udscs_write(active_session_conn, VDAGENTD_MONITORS_CONFIG, 0,
> > 0,
> > + (uint8_t *)mon_config, size);
> >
> > /* Acknowledge reception of monitors config to spice server /
> > client */
> > reply.type = VD_AGENT_MONITORS_CONFIG;
> >
>
> Good catch! This may very well explain much if the issues we've been
> seeing. But this needs some
> more work, we need to also send an (potentially updated)
> monitor-config to the
> new active-agent when the active session changes, ie, we've 2 agents
> running for 2 sessions
> not sharing the same X-server, ie using user switching, then when we
> switch to the other user,
> the agent should be notified so that the resolution of the other
> X-server gets adjusted too.
I was thinking to rely on X events for that, if they exist. Also, I think we shouldn't wait for that extra work to apply the above fix, since error is much more likely to happen currently than with the multiple session agents situation (and that might be a recoverable situation).
More information about the Spice-devel
mailing list