diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-03-23 15:20:02 +0900 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-03-26 14:32:54 +0100 |
commit | f69a6f04133df61e2ab23553496a070f27f5b732 (patch) | |
tree | 59953526d5fe434b7251c9ec08aa47587dbae669 /ui | |
parent | d2ee0420a394bb0affb06659bdb5d706af24157b (diff) | |
download | qemu-f69a6f04133df61e2ab23553496a070f27f5b732.zip qemu-f69a6f04133df61e2ab23553496a070f27f5b732.tar.gz qemu-f69a6f04133df61e2ab23553496a070f27f5b732.tar.bz2 |
ui/cocoa: Resize window after toggling zoom-to-fit
Resize the window so that the content will fit without zooming.
Fixes: 91aa508d0274 ("ui/cocoa: Let the platform toggle fullscreen")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20240323-fixes-v2-2-18651a2b0394@daynix.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/cocoa.m | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1408,6 +1408,7 @@ static CGEventRef handleTapEvent(CGEventTapProxy proxy, CGEventType type, CGEven [[cocoaView window] setStyleMask:styleMask]; [sender setState:styleMask & NSWindowStyleMaskResizable ? NSControlStateValueOn : NSControlStateValueOff]; + [cocoaView resizeWindow]; } - (void)toggleZoomInterpolation:(id) sender |