Bug 423281

Summary: Nheko-reborn has scaled up inappropriately
Product: [Plasma] KScreen Reporter: Loren Burkholder <loren>
Component: commonAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.18.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Loren Burkholder 2020-06-20 16:38:20 UTC
SUMMARY
Nheko-reborn (a Matrix client written in Qt) refuses to scale back down after I changed the display scaling to 150% and then back to 100%. The nheko version is 0.6.4. Purging the app through apt and reinstalling does not fix the problem.

STEPS TO REPRODUCE
1. Install the package "nheko" from the Ubuntu Universe repos.
2. Scale the screen to 150% through System Settings.
3. Scale the screen to 100%.
4. Launch nheko.

OBSERVED RESULT
The app is scaled up to approximately 150%.

EXPECTED RESULT
The app should be normal size.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 19.10
(available in About System)
KDE Plasma Version: 5.18.3
KDE Frameworks Version: 5.67.0
Qt Version: 5.12.4
Comment 1 Nate Graham 2020-06-22 16:27:25 UTC
Did you remember to log out or reboot after changing the scale? If you do so, does the problem go away?
Comment 2 Loren Burkholder 2020-06-22 16:28:26 UTC
(In reply to Nate Graham from comment #1)
> Did you remember to log out or reboot after changing the scale? If you do
> so, does the problem go away?

Yes, I logged out, and no, it didn't go away.
Comment 3 Nate Graham 2020-06-22 18:29:09 UTC
Thanks. How odd. Can you paste the output of `grep -ri scale ~/.config/kdeglobals` and `env | grep -i scal`
Comment 4 Loren Burkholder 2020-06-22 21:32:55 UTC
ScaleFactor=1
ScreenScaleFactors=eDP-1=1;HDMI-1=1;

and 

QT_SCREEN_SCALE_FACTORS=eDP-1=1;HDMI-1=1;
QT_AUTO_SCREEN_SCALE_FACTOR=0

respectively.
Comment 5 Nate Graham 2020-06-22 22:01:30 UTC
Thanks.

That's everything that KWin, KScreen, and Plasma do, and it looks like we're doing everything right. Seems like it has to be an issue in Nheko, then. Perhaps it guesses the scale factor internally and then stores that information in its own config file or something. Can you report this to its developers? Thanks!
Comment 6 Loren Burkholder 2020-06-22 22:18:04 UTC
(In reply to Nate Graham from comment #5)
> Thanks.
> 
> That's everything that KWin, KScreen, and Plasma do, and it looks like we're
> doing everything right. Seems like it has to be an issue in Nheko, then.
> Perhaps it guesses the scale factor internally and then stores that
> information in its own config file or something. Can you report this to its
> developers? Thanks!

Thanks for your efforts. I'll work with the Nheko folks.