qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/8] console: add state notifiers for ui<->displ


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH 2/8] console: add state notifiers for ui<->display
Date: Wed, 20 Nov 2013 12:04:13 +0100

On Mi, 2013-11-20 at 15:52 +1000, Dave Airlie wrote:
> From: Dave Airlie <address@hidden>
> 
> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]