Skip to content

X11: Fix window size after changing the fallback scale factor multiple times - #358

Merged
prokopyl merged 1 commit into
RustAudio:masterfrom
podulator:double-scaling-x11-fix
Oct 22, 2026
Merged

prokopyl merged 1 commit into
RustAudio:masterfrom
podulator:double-scaling-x11-fix

Conversation

@podulator

Copy link
Copy Markdown
Contributor

Hi there,
Working on some CLAP plugs, and noticed that moving X11 plugin Windows between my very ad-hoc multi-monitor setup caused scaling issues, due to the behaviour of repeated scale change calls.

With a 400x300 window size::
with a suggested scaling of 1.5 - you get 600x450, this patch gets 600x450
Suggest 2.0 scaling, after that (sim move to different scaled monitor) - you get 1200x900, this patch gets 800x600
Suggest another 2.0 scaling - you get 2400x1800, this patch gets 800x600

Let me know if you need anything more :)
Cheers, and thanks for the project :)

@prokopyl

Copy link
Copy Markdown
Member

After some testing this looks good to me! Thank you for the fix 🙂

@prokopyl prokopyl changed the title Fix scaling change for differently scaled monitors X11: Fix window size after changing the fallback scale factor multiple times Oct 22, 2026
@prokopyl
prokopyl merged commit 08f5949 into RustAudio:master Oct 22, 2026
7 checks passed
@prokopyl prokopyl added this to the v0.4.X milestone Oct 22, 2026
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.

2 participants