diff options
author | 2024-02-24 21:43:40 +0900 | |
---|---|---|
committer | 2024-03-05 12:04:41 +0100 | |
commit | 4b49f92ce1499eecf5be5365429e5d4c486354db (patch) | |
tree | 0ae77e253962441dfaab015bc7f6cba9304da780 /ui | |
parent | ui/cocoa: Make window resizable (diff) | |
download | qemu-4b49f92ce1499eecf5be5365429e5d4c486354db.tar.xz qemu-4b49f92ce1499eecf5be5365429e5d4c486354db.zip |
ui/cocoa: Call console_select() with the BQL
[-QemuCocoaView displayConsole:] can be called anytime so explicitly
take the BQL before it calls console_select().
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Tested-by: Rene Engel <ReneEngel80@emailn.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20240224-cocoa-v12-9-e89f70bdda71@daynix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/cocoa.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m index 6c9efa0c20..bc63043158 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1379,7 +1379,9 @@ static CGEventRef handleTapEvent(CGEventTapProxy proxy, CGEventType type, CGEven /* Displays the console on the screen */ - (void)displayConsole:(id)sender { - console_select([sender tag]); + with_bql(^{ + console_select([sender tag]); + }); } /* Pause the guest */ |