Skip to content

Commit

Permalink
ui/cocoa: Call console_select() with the BQL
Browse files Browse the repository at this point in the history
[-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>
  • Loading branch information
akihikodaki authored and philmd committed Mar 5, 2024
1 parent b6ee03c commit 4b49f92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/cocoa.m
Original file line number Diff line number Diff line change
Expand Up @@ -1379,7 +1379,9 @@ - (void)toggleZoomInterpolation:(id) sender
/* Displays the console on the screen */
- (void)displayConsole:(id)sender
{
console_select([sender tag]);
with_bql(^{
console_select([sender tag]);
});
}

/* Pause the guest */
Expand Down

0 comments on commit 4b49f92

Please sign in to comment.