diff options
-rw-r--r-- | src/cmd/devdraw/cocoa-screen-metal.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmd/devdraw/cocoa-screen-metal.m b/src/cmd/devdraw/cocoa-screen-metal.m index 09b34635..959df59b 100644 --- a/src/cmd/devdraw/cocoa-screen-metal.m +++ b/src/cmd/devdraw/cocoa-screen-metal.m @@ -342,6 +342,13 @@ struct Cursors { return YES; } +- (void)windowDidResize:(NSNotification *)notification +{ + if(![myContent inLiveResize] && img) { + resizeimg(); + } +} + - (void)windowDidBecomeKey:(id)arg { [myContent sendmouse:0]; @@ -1112,7 +1119,6 @@ resizewindow(Rectangle r) s = [myContent convertSizeFromBacking:NSMakeSize(Dx(r), Dy(r))]; [win setContentSize:s]; - resizeimg(); }); } |