On Mi, 2013-11-20 at 15:52 +1000, Dave Airlie wrote: > From: Dave Airlie <airl...@redhat.com> > > These are to be used for the UI to signal the video display, > and vice-versa about changes in the state of a console, like > size and offsets in relation to other consoles for input handling.
See other mail from today morning. I think this is input layer's job, not ui code job. Storing the info in QemuConsole is fine. Having a QemuHeadInfo struct for it is probably useful, so the input layer can query it easily, say using a to-be-written qemu_console_get_head_info() function which returns a ptr to the struct. Notification should also go to the input layer not ui code. Or maybe use a notifier list (see include/qemu/notify.h) so anyone interested can listen, ui code might want to know too (not for input processing, but maybe to arrange window on the host). cheers, Gerd