Skip to content

MacOS: Prevent automatic rescaling on resize events - #336

Open
davemollen wants to merge 1 commit into
RustAudio:masterfrom
davemollen:fix/nice-plug-macos-resizing-bug
Open

MacOS: Prevent automatic rescaling on resize events#336
davemollen wants to merge 1 commit into
RustAudio:masterfrom
davemollen:fix/nice-plug-macos-resizing-bug

Conversation

@davemollen

Copy link
Copy Markdown

Currently when the window is resized on macOS the UI scales proportionally.
Changing the CFRunLoop from kCFRunLoopDefaultMode to kCFRunLoopCommonModes removes that automatic rescaling behavior. Giving the user control over the scaling.

I came across this in the nice-plug example plugins. The expected behavior for these plugins is to not rescale the UI on resize events. What is actually happening is the UI gets rescaled on resize events and when resizing is finished the scale snaps back to a factor of 1 (the original scale).

@davemollen davemollen changed the title Prevent automatic rescaling on macos on resize events MacOS: Prevent automatic rescaling on resize events Sep 10, 2026
@davemollen

Copy link
Copy Markdown
Author

@prokopyl Could you have a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant