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>
This commit is contained in:
Akihiko Odaki 2024-02-24 21:43:40 +09:00 committed by Philippe Mathieu-Daudé
parent b6ee03c229
commit 4b49f92ce1

View File

@ -1379,7 +1379,9 @@ static CGEventRef handleTapEvent(CGEventTapProxy proxy, CGEventType type, CGEven
/* Displays the console on the screen */
- (void)displayConsole:(id)sender
{
with_bql(^{
console_select([sender tag]);
});
}
/* Pause the guest */