Bug 422551 - Window decoration corner radius does not respect scale factor
Summary: Window decoration corner radius does not respect scale factor
Status: RESOLVED FIXED
Alias: None
Product: Breeze
Classification: Plasma
Component: window decoration (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-06 19:53 UTC by Nate Graham
Modified: 2021-05-06 18:15 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.22


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2020-06-06 19:53:30 UTC
OpenSUSE Tumbleweed with Qt 5.15 and all KDE software built from today's git master.

STEPS TO REPRODUCE
1. Set scale factor to 200%
2. Reboot
3. Open any app with server-side decorations (i.e. a KWin-drawn titlebar)

OBSERVED RESULT
The corner radius of the top corners is not scaled with the scale factor, so it is very small and the window looks almost square.

EXPECTED RESULT
The corner radius is is exactly the same physical size at 200% scale on a 4k screen as it would be at 100% scale on an FHD screen.
Comment 1 Bug Janitor Service 2021-05-03 17:03:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/breeze/-/merge_requests/100
Comment 2 Nate Graham 2021-05-06 18:14:14 UTC
Git commit f53fb9295e6f4914d8538f153bea2b1e89f2df2a by Nate Graham, on behalf of Paul McAuley.
Committed on 06/05/2021 at 18:13.
Pushed by ngraham into branch 'master'.

Scale corner radii by smallSpacing factor

M  +9    -9    kdecoration/breeze.h
M  +33   -23   kdecoration/breezedecoration.cpp
M  +6    -2    kdecoration/breezedecoration.h

https://invent.kde.org/plasma/breeze/commit/f53fb9295e6f4914d8538f153bea2b1e89f2df2a