Stop a Chromium window shrinking a little on every interaction
Symptom
Chromium or an Electron app running natively on Wayland shrinks itself a little on every interaction, so the window creeps smaller and smaller. Mouse clicks land offset from where you clicked. Only happens when the monitor scale is fractional (1.25, 1.5, 1.75).
Cause
A long-standing Chromium bug in its per-surface Wayland fractional-scaling implementation. Chromium mis-applies the fractional scale when reporting its own size back to the compositor, so each round trip shrinks it and desynchronises input coordinates. Affects everything built on the same Ozone code, i.e. all Electron apps.
Fix
Disable Chromium's per-surface scaling. Put the flag in the persistent flags file: ~/.config/chromium-flags.conf for the chromium package, ~/.config/chrome-flags.conf for Google Chrome:
--disable-features=WaylandPerSurfaceScale
That flag was **removed in Chromium 146**. On 146 and later use:
--disable-features=WaylandFractionalScaleV1
Fully quit the browser (close every window and any background/tray instance) and relaunch. Do not use the in-browser "Relaunch" button, it restarts on the old platform.
If you would rather pin an explicit scale instead:
--force-device-scale-factor=1.5 --gtk-version=4
On Omarchy, ~/.config/chromium-flags.conf is the right place, because Omarchy reads it for its Chromium install.
Verify
Open Chromium, resize it, click around a page for a minute. The window keeps its size and clicks land where the cursor is.