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:
parent
b6ee03c229
commit
4b49f92ce1
@ -1379,7 +1379,9 @@ static CGEventRef handleTapEvent(CGEventTapProxy proxy, CGEventType type, CGEven
|
|||||||
/* Displays the console on the screen */
|
/* Displays the console on the screen */
|
||||||
- (void)displayConsole:(id)sender
|
- (void)displayConsole:(id)sender
|
||||||
{
|
{
|
||||||
|
with_bql(^{
|
||||||
console_select([sender tag]);
|
console_select([sender tag]);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pause the guest */
|
/* Pause the guest */
|
||||||
|
Loading…
Reference in New Issue
Block a user