https://bugs.kde.org/show_bug.cgi?id=454942
Bug ID: 454942 Summary: Provide devicePixelRatio in KDecoration2 Product: kwin Version: 5.24.90 Platform: Other OS: Linux Status: REPORTED Severity: wishlist Priority: NOR Component: decorations Assignee: kwin-bugs-n...@kde.org Reporter: k...@paulmcauley.com Target Milestone: --- This is a feature request for an additional parameter in the KDecoration2 API. Currently, in KDecoration you can only access devicePixelRatioF() (of the current screen which the window exists) within the Decoration::paint method via painter->device()->devicePixelRatioF(). However, in my own C++ window decoration I also paint some elements outside the Decoration::paint method (for example, a window outline in the shadow, and a separator under the titlebar). For these I would like access to devicePixelRatioF() for more precise painting (e.g. with a cosmetic brush) and alignment under Wayland. Vlad Zahorodnii also mentioned this as a possibility in an old merge request at https://invent.kde.org/plasma/breeze/-/merge_requests/75 : "Vlad Zahorodnii @vladz ยท 1 year ago Developer KWin is the true source of device pixel ratio information. If such information is needed, it can be added in KDecoration2 library, e.g. a devicePixelRatio getter and a signal." -- You are receiving this mail because: You are watching all bug changes.