| Summary: | Legacy Applications: Apply scaling themselves: Scaling changes depending on 2nd screen enabled or not | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | postix <postix> |
| Component: | wayland-generic | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.26.4 | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
kWin Support Info: Primary Screen only
kWin Support Info: 2nd screen enabled Screenshot: 5.26.3, PyCharm after waking up from suspend kWin Support Info: After waking up from suspend kWin Support Info: After waking up from suspend |
||
|
Description
postix
2022-11-29 11:16:54 UTC
Created attachment 154132 [details]
kWin Support Info: Primary Screen only
An application (PyCharm) with GDK_SCALING=1 scaled with 1.0.
Created attachment 154133 [details] kWin Support Info: 2nd screen enabled The application (PyCharm) spontaneously changed 200% scaling while running. The expectation was, that the scaling does not change, when enabling the 2nd screen in kscreen. ``` diff kWin_wayland_5-26-3_SingleScreen.txt kWin_wayland_5-26-3_2ndScreenEnabled.txt 153c153 < Geometry: 0,0,1920x1080 --- > Geometry: 1536,0,1920x1080 160c160,164 < Enabled: 0 --- > Enabled: 1 > Geometry: 0,0,1536x864 > Scale: 1.25 > Refresh Rate: 60000 > Adaptive Sync: incapable ``` > and adjusted the individual scaling of applications via environmental variables
This isn't supported, and it's highly likely that your workaround is causing more problems than it's solving, or at least obscuring the true problem and making it impossible for us to fix.
Please remove the manual workaround, try again, and if you still have a problem, describe what the problem is so we can fix it. But we can't fix problems caused by workarounds breaking.
Nate, you mean it's not supposed to set the scaling now with the "Legacy Applications: Apply scaling themselves" option enabled in the sense of https://wiki.archlinux.org/title/HiDPI#Applications ? The system should be setting all necessary environment variables. If it's not, that's another bug. :) The problem with filing bug reports saying, "I applied this workaround and now I have a bug" is that we don't know where the real issue for us to fix is. Created attachment 154198 [details]
Screenshot: 5.26.3, PyCharm after waking up from suspend
I ran PyCharm w/o setting any env variables and it scaled fine with a factor of 2 on my 200% scaled screen.
When I just woke up the system from suspend, the window looked like in the screenshot:
In the background the still 2x scaled window was still displayed, but in the upper left corner, it showed the same window with a 1.0 scaling and a blinking line cursor.
After resizing the window by dragging the titlebar, it changed and only a single 1.0 scaled window was displayed.
When I opened GIMP to edit the screenshot, for which I still had set `Exec=env GDK_SCALE=2.0` in its desktop file, it also opened now with a 1.0 scaling.
The currently only (semi-)related global scaling variables are:
```
QT_WAYLAND_FORCE_DPI=96
QT_AUTO_SCREEN_SCALE_FACTOR=0
PLASMA_USE_QT_SCALING=1
```
Created attachment 154199 [details]
kWin Support Info: After waking up from suspend
Created attachment 154200 [details]
kWin Support Info: After waking up from suspend
To comment 6: It helped to set a different scaling factor in kscreen, hit apply, hit revert and restarting PyCharm: Now it scales with 200% again. (In reply to postix from comment #9) > To comment 6: It helped to set a different scaling factor in kscreen, hit > apply, hit revert and restarting PyCharm: Now it scales with 200% again. Same for GIMP. So for some reasons, it picks up the wrong scaling (namely 1.0 instead of 2.0) when coming from suspend. Well, what's described from comment 6 onward doesn't happen always. Maybe there's a racing condition? Now it happened within a session, when I closed PyCharm and reopened it. Could fix it like in comment 9 again. Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Some information was provided. |