| Summary: | Kwin Decorations with 75% scaling on wayland | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Alexandre Pereira <pereira.alex> |
| Component: | decorations | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | billymatiyabo, globalunity, nate, null |
| Priority: | NOR | ||
| Version First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/kwin/commit/c9ac2e3fb811311701b81f745b63f35256a2cf3e | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | 3 monitors, left with 75% scaling | ||
|
Description
Alexandre Pereira
2021-02-10 21:56:09 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/685 Git commit 9ccae5eda67b67a8094e1a48e28a5bb3d584e6e0 by Vlad Zahorodnii. Committed on 11/02/2021 at 12:06. Pushed by vladz into branch 'master'. platforms/wayland: Round up fractional scale factors Currently, fractional scale factors that are less than 1 will be floored to 0, which is a protocol violation. M +1 -1 src/plugins/platforms/wayland/egl_wayland_backend.cpp M +3 -1 src/plugins/platforms/wayland/scene_qpainter_wayland_backend.cpp M +1 -1 src/plugins/platforms/wayland/wayland_backend.cpp https://invent.kde.org/plasma/kwin/commit/9ccae5eda67b67a8094e1a48e28a5bb3d584e6e0 *** Bug 434322 has been marked as a duplicate of this bug. *** Git commit c9ac2e3fb811311701b81f745b63f35256a2cf3e by Vlad Zahorodnii. Committed on 26/04/2021 at 11:41. Pushed by vladz into branch 'master'. decoration: Fix rendering issues with scale factors < 1 QPainter::setWindow() doesn't work as we expect if the device pixel ratio of the paint device is less than 1, for example 0.5 or 0.75. QPainter only allows the effective device pixel ratios that are greater than or equal to 1. This restriction probably has to be lifted. For the time being, this change introduces a helper function that can be used to determine the scale factor by which QPainter::window() must be multiplied. M +1 -1 src/decorations/decorationrenderer.cpp M +1 -1 src/plugins/scenes/opengl/scene_opengl.cpp M +1 -1 src/plugins/scenes/qpainter/scene_qpainter.cpp M +6 -0 src/utils.cpp M +9 -0 src/utils.h https://invent.kde.org/plasma/kwin/commit/c9ac2e3fb811311701b81f745b63f35256a2cf3e *** Bug 431033 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of bug 449681 *** |