Display broken on Wayland with fractional scaling
I have a laptop with 2560x1600 screen and an external monitor with 2560x1440 resolution. I'am using Niri Wayland compositor. On laptop screen I have set fractional scaling to 1.33. If I start Eclipse on the external monitor, display is somewhat scaled up and broken as may be seen on those screenshots:
If I move Eclipse window to the laptop screen and back, it fixes itself and asks "Restart for the zoom changes to take full effect". If I deny that, everything is fine. If I do a restart, it is broken again.
Tested under this environment:
- Ubuntu 24.04, Niri v25.05.01, Eclipse running directly under Wayland
- Eclipse IDE/Platform version (as shown in Help > About): Version: 2025-06 (4.36.0); Build id: 20250605-1316
- If I try to run Eclipse under xwayland-satellite (GDK_BACKEND=x11), it looks somewhat OK, but ugly
This is how it looks if I take a photo of the screen. On screenshots it looks different.
The same happens under KWin so it does not seem to be compositor's fault. Tested on Kubuntu 25.10, KWin 6.4.5 and Eclipse 2025-09.
In my case screenshot accurately shows all the graphical problems including scaling, parts of Eclipse windows looking pixelated and 'shadow' of window being moved to the second screen left on the first screen. Left screen is built-in laptop screen with scaling of 125%, right screen is external monitor scaled to 100%. The same bug affects other applications built on Eclipse platform, for example DBeaver.