[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 5/6] ui/cocoa: Call console_select() with the BQL
From: |
Akihiko Odaki |
Subject: |
[PATCH v9 5/6] ui/cocoa: Call console_select() with the BQL |
Date: |
Tue, 13 Feb 2024 21:00:59 +0900 |
console_select() can be called anytime so explicitly take the BQL.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
ui/cocoa.m | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ui/cocoa.m b/ui/cocoa.m
index 754539937ffe..93e761f09c6e 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -1391,7 +1391,9 @@ - (void)zoomToFit:(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 */
--
2.43.0
- [PATCH v9 0/6] ui/cocoa: Use NSWindow's ability to resize, Akihiko Odaki, 2024/02/13
- [PATCH v9 1/6] ui/cocoa: Release specific mouse buttons, Akihiko Odaki, 2024/02/13
- [PATCH v9 2/6] ui/cocoa: Scale with NSView instead of Core Graphics, Akihiko Odaki, 2024/02/13
- [PATCH v9 3/6] ui/cocoa: Let the platform toggle fullscreen, Akihiko Odaki, 2024/02/13
- [PATCH v9 4/6] ui/cocoa: Make window resizable, Akihiko Odaki, 2024/02/13
- [PATCH v9 5/6] ui/cocoa: Call console_select() with the BQL,
Akihiko Odaki <=
- [PATCH v9 6/6] ui/cocoa: Remove stretch_video flag, Akihiko Odaki, 2024/02/13