diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2019-02-25 10:24:32 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-03-04 16:47:31 +0000 |
commit | 61a2ed447e1c0a05c4bb568c579a2d64c2d9c232 (patch) | |
tree | a814fab3b4e2492b7531d33782695a3f9ab84f4f /ui/gtk.c | |
parent | 60105d7a1cbe5f347f66a422700ae073edad34f8 (diff) |
ui/cocoa: Subclass NSApplication so we can implement sendEvent
When we switch away from our custom event handling, we still want to
be able to have first go at any events our application receives,
because in full-screen mode we want to send key events to the guest,
even if they would be menu item activation events. There are several
ways we could do that, but one simple approach is to subclass
NSApplication so we can implement a custom sendEvent method.
Do that, but for the moment have our sendEvent just invoke the
superclass method.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com>
Tested-by: Roman Bolshakov <r.bolshakov@yadro.com>
Message-id: 20190225102433.22401-7-peter.maydell@linaro.org
Message-id: 20190214102816.3393-7-peter.maydell@linaro.org
Diffstat (limited to 'ui/gtk.c')
0 files changed, 0 insertions, 0 deletions