vdagentd: keep track of active session and xorg resolution
commit04a7f08b75781fcbac2a8eb56d2217da25e5e62d
authorHans de Goede <hdegoede@redhat.com>
Wed, 27 Oct 2010 20:33:16 +0000 (27 22:33 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 27 Oct 2010 21:13:10 +0000 (27 23:13 +0200)
treefcec8e629cd2b7e58d3cda85d74aefff2675cddc
parent854ff3ef1c417425a99427f07eddb7c96b47ab10
vdagentd: keep track of active session and xorg resolution

The uinput tablet device vdagentd creates MUST have the same resolution
as the active xorg session. So we remember to which session an agent belongs
and the resolution send by each agent and then when the session is changed
update the uinput device's resolution if necessary. Or close the vdagent
virtio channel if we don't know the resolution (fall back to server mouse
mode).
vdagentd.c