Bug 430167 - Changing global scale does not work properly when typing a value directly and pressing the enter key
Summary: Changing global scale does not work properly when typing a value directly and...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kscreen (show other bugs)
Version: 5.20.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kscreen-bugs-null@kde.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-08 20:15 UTC by Christoph Vogtländer
Modified: 2022-11-10 22:22 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screencast (534.28 KB, application/octet-stream)
2020-12-09 22:40 UTC, Christoph Vogtländer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Vogtländer 2020-12-08 20:15:01 UTC
SUMMARY
Changing the global display scale (X11) only works when using the slider or by using the spin box buttons. Setting the value directly by typing a value will reset the scale to "100%" when the spin box looses focus

STEPS TO REPRODUCE
1. Set a new scale by typing e.g. "150 -> Enter"
2. The slider will move as expected, "Apply" button becomes active
3. Change focus, e.g. by clicking "Apply"

OBSERVED RESULT
The scale factor is reset to 100%


EXPECTED RESULT
The chosen scale factor should be applied

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.9.12-arch1-1
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-4460 CPU @ 3.20GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Comment 1 Christoph Vogtländer 2020-12-08 20:15:46 UTC
Side note: using the scroll wheel also seems to work fine
Comment 2 Nate Graham 2020-12-09 16:01:31 UTC
Works for me. I can delete the value in the spinbox, type a new one, hit the tab or enter key, and press the Apply button and have the new value applied.

Are you using the KCM on Wayland or X11?
Comment 3 Christoph Vogtländer 2020-12-09 22:30:56 UTC
I'm using the KCM on X11

Using TAB works for me, too.

It is reproducible here when using the steps as mentioned in my initial post. More exactly:
1. Select whole text in spinbox by clicking three times
2. type new value: 150
3. press ENTER
4. click "Apply"
-> value changes back to 100% (and no info message at the top of the KCM appears as it should)
Comment 4 Christoph Vogtländer 2020-12-09 22:33:29 UTC
Changing status back to REPORTED
Comment 5 Christoph Vogtländer 2020-12-09 22:40:44 UTC
Created attachment 133958 [details]
Screencast

Add screencast to illustrate the issue
Comment 6 Nate Graham 2020-12-10 04:05:06 UTC
Can confirm with those exact steps to reproduce. Hitting the enter key seems to be the thing that makes it happen.
Comment 7 Nate Graham 2022-11-10 22:22:55 UTC
This has since been fixed.