]> git.proxmox.com Git - mirror_qemu.git/commit - ui/cocoa.m
ui/cocoa: Override windowDidResignKey
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Tue, 28 Feb 2023 07:09:46 +0000 (16:09 +0900)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 7 Mar 2023 23:37:48 +0000 (00:37 +0100)
commit9d9bc7db50e7d4fc29da10be4bc7a4157b13a566
tree8d087b4d65defc31870e8b26e5ff785fa93c0df7
parent0c38e9ddd7ba0fcbada0b1f1d4d11e7b5b0dcbe3
ui/cocoa: Override windowDidResignKey

This fixes pressed keys being stuck when the deck is clicked and the
window loses focus.

In the past, Gustavo Noronha Silva also had a patch to fix this issue
though it only ungrabs mouse and does not release keys, and depends on
another out-of-tree patch:
https://github.com/akihikodaki/qemu/pull/3/commits/e906a80147b1dc6d4f31b6a08064ef9871a2b76c

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20230228070946.12370-1-akihiko.odaki@daynix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
ui/cocoa.m