qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: 'Gerd Hoffmann ' <kraxel@redhat.com>
To: gustavo@noronha.eti.br
Cc: 'Peter Maydell ' <peter.maydell@linaro.org>,
	qemu-devel@nongnu.org, 'Markus Armbruster ' <armbru@redhat.com>
Subject: Re: [PATCH 1/2] ui/cocoa: capture all keys and combos when mouse is grabbed
Date: Fri, 30 Apr 2021 10:05:50 +0200	[thread overview]
Message-ID: <20210430080550.twoujiljpcskvcla@sirius.home.kraxel.org> (raw)
In-Reply-To: <20210429234705.83206-2-gustavo@noronha.eti.br>

On Thu, Apr 29, 2021 at 08:47:04PM -0300, gustavo@noronha.eti.br wrote:
> From: Gustavo Noronha Silva <gustavo@noronha.eti.br>
> 
> Applications such as Gnome may use Alt-Tab and Super-Tab for different
> purposes, some use Ctrl-arrows so we want to allow qemu to handle
> everything when it captures the mouse/keyboard.
> 
> However, Mac OS handles some combos like Command-Tab and Ctrl-arrows
> at an earlier part of the event handling chain, not letting qemu see it.
> 
> We add a global Event Tap that allows qemu to see all events when the
> mouse is grabbed. Note that this requires additional permissions.
> 
> See:
> 
> https://developer.apple.com/documentation/coregraphics/1454426-cgeventtapcreate?language=objc#discussion
> https://support.apple.com/en-in/guide/mac-help/mh32356/mac

Looks all sensible to me, I'd like to have the opinion from the MacOS
experts for this one though.

thanks,
  Gerd



  parent reply	other threads:[~2021-04-30  8:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-29 23:47 [PATCH 0/2] cocoa: keyboard quality of life gustavo
2021-04-29 23:47 ` [PATCH 1/2] ui/cocoa: capture all keys and combos when mouse is grabbed gustavo
2021-04-30  7:20   ` Markus Armbruster
2021-04-30 10:02     ` Gustavo Noronha Silva
2021-04-30 10:10       ` Gustavo Noronha Silva
2021-04-30 10:58         ` Markus Armbruster
2021-04-30 12:02           ` Gustavo Noronha Silva
2021-04-30 14:36             ` Markus Armbruster
2021-04-30 10:54       ` Markus Armbruster
2021-04-30  8:05   ` 'Gerd Hoffmann ' [this message]
2021-04-30  9:43     ` Gustavo Noronha Silva
2021-04-29 23:47 ` [PATCH 2/2] ui/cocoa: add option to swap Option and Command, enable by default gustavo
2021-04-30  7:25   ` Markus Armbruster
2021-04-30  8:04   ` 'Gerd Hoffmann '
2021-04-30 10:36     ` Gustavo Noronha Silva
  -- strict thread matches above, loose matches on Subject: below --
2022-03-06 11:11 [PATCH 0/2] cocoa: keyboard quality of life Akihiko Odaki
2022-03-06 11:11 ` [PATCH 1/2] ui/cocoa: capture all keys and combos when mouse is grabbed Akihiko Odaki
2022-03-06 11:28   ` BALATON Zoltan

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=20210430080550.twoujiljpcskvcla@sirius.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=armbru@redhat.com \
    --cc=gustavo@noronha.eti.br \
    --cc=peter.maydell@linaro.org \
    --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).