| Summary: | Xwayland apps scaling issues | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | dominik.klementowski |
| Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | dougshaw77, fanzhuyifan, nate, xaver.hugl |
| Priority: | NOR | Keywords: | qt6 |
| Version First Reported In: | 5.93.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=474934 | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/63868e4dd491da2e9cd28a0115566408d202ad8a | Version Fixed/Implemented In: | 6.0 |
| Sentry Crash Report: | |||
|
Description
dominik.klementowski
2024-01-31 23:11:08 UTC
Thank you for your bug report! Unfortunately setting per-monitor scaling using tools like xrandr in the X11 session is not supported. KDE only supports per-monitor scaling in the plasma session. Oh sorry that was a mistake -- I thought you were on X11 (In reply to fanzhuyifan from comment #2) > Oh sorry that was a mistake -- I thought you were on X11 Yes, that is Wayland session and I’m using everything as is without messing with xrandr or anything manually. I cannot reproduce this, when turning off a screen an Xwayland app on the screen that stayed on doesn't appear to be effected in any way. An Xwayland app on the screen turned off reappears on the screen not turned off at the proper scale. Neon Testing, Plasma 5.92.90, Frameworks 5.249.0, Qt 6.6.1 (In reply to Doug from comment #4) > I cannot reproduce this, when turning off a screen an Xwayland app on the > screen that stayed on doesn't appear to be effected in any way. An Xwayland > app on the screen turned off reappears on the screen not turned off at the > proper scale. > > Neon Testing, Plasma 5.92.90, Frameworks 5.249.0, Qt 6.6.1 That is also true for me if the app window sits on a scaled screen. In the case I'm describing (and as you can also see on the video), Xwayland windows are placed on unscaled 100% screen, and the screen I add or remove is at 125% scale. A much simpler way to test this is to just have one display connected and change the scale while having X11 windows open. Can confirm A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5085 Git commit c2749e3acf974d47127f899549919ae19c9e9719 by Xaver Hugl. Committed on 02/02/2024 at 01:00. Pushed by zamundaaa into branch 'master'. x11window: explicitly resize when the Xwayland scale changes With how Xwayland scaling works, KWin assumes the window already uses the new coordinate system - but that doesn't happen until Xwayland and the client know about the new size as well. M +8 -0 src/x11window.cpp M +1 -0 src/x11window.h https://invent.kde.org/plasma/kwin/-/commit/c2749e3acf974d47127f899549919ae19c9e9719 Git commit 63868e4dd491da2e9cd28a0115566408d202ad8a by Xaver Hugl. Committed on 02/02/2024 at 01:06. Pushed by zamundaaa into branch 'Plasma/6.0'. x11window: explicitly resize when the Xwayland scale changes With how Xwayland scaling works, KWin assumes the window already uses the new coordinate system - but that doesn't happen until Xwayland and the client know about the new size as well. (cherry picked from commit c2749e3acf974d47127f899549919ae19c9e9719) M +8 -0 src/x11window.cpp M +1 -0 src/x11window.h https://invent.kde.org/plasma/kwin/-/commit/63868e4dd491da2e9cd28a0115566408d202ad8a |