qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Dave Airlie <airlied@gmail.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] console muti-head some more design input
Date: Wed, 20 Nov 2013 09:12:38 +0100	[thread overview]
Message-ID: <1384935158.2005.34.camel@nilsson.home.kraxel.org> (raw)
In-Reply-To: <CAPM=9tx08mf08OR2dETiSQwcy4ze35iTAP=e50aETf+eZ9xThQ@mail.gmail.com>

  Hi,

> I think you are only considering output here, for input we definitely
> need some idea of screen layout, and this needs to be stored
> somewhere.

Oh yea, input.  That needs quite some work for multihead / multiseat.

I think we should *not* try to hack that into the ui.  We should extend
the input layer instead.

The functions used to notify qemu about mouse + keyboard events should
get an additional parameter to indicate the source of the event.  I
think we can use a QemuConsole here.

Then teach the input layer about seats, where a seat is a group of input
devices (kbd, mouse, tablet) and a group of QemuConsoles.  With x+y for
each QemuConsole.  The input layer will do the event routing:  Translate
coordinates, send to the correct device.

I think initially we just can handle all existing QemuConsole and input
devices implicitly as "seat 0".  Stick x+y into QemuConsole for now, and
have the input layer get it from there.  At some point in the future we
might want move this to a QemuSeat when we actually go multiseat.

Bottom line: please do the coordinates math in input.c not sdl2.c so we
don't run into roadblocks in the future.

cheers,
  Gerd

  parent reply	other threads:[~2013-11-20  8:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19  6:24 [Qemu-devel] console muti-head some more design input Dave Airlie
2013-11-19  8:11 ` Gerd Hoffmann
2013-11-20  2:59   ` Dave Airlie
2013-11-20  4:06     ` John Baboval
2013-11-20  5:17       ` Dave Airlie
2013-11-20  5:18         ` Dave Airlie
2013-11-20  8:12     ` Gerd Hoffmann [this message]
2013-11-20 14:32       ` John Baboval
2013-11-20 15:14         ` Gerd Hoffmann
2013-11-20 15:49           ` John Baboval
2013-11-22  8:36             ` Gerd Hoffmann
2013-11-21  0:45           ` Dave Airlie
2013-11-22  8:41             ` Gerd Hoffmann
2013-11-27  4:29               ` Dave Airlie
2013-11-27  7:11                 ` Gerd Hoffmann
2013-11-27 14:23                 ` John Baboval

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1384935158.2005.34.camel@nilsson.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=airlied@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).