mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
ui/cocoa: Resize window after toggling zoom-to-fit
Resize the window so that the content will fit without zooming.
Fixes: 91aa508d02
("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>
This commit is contained in:
parent
d2ee0420a3
commit
f69a6f0413
1 changed files with 1 additions and 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue