https://bugs.kde.org/show_bug.cgi?id=453229

            Bug ID: 453229
           Summary: New setBlurRegion() API gives blocky/aliased blur
                    region corners on Wayland
           Product: kwin
           Version: git master
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: decorations
          Assignee: kwin-bugs-n...@kde.org
          Reporter: k...@paulmcauley.com
  Target Milestone: ---

Created attachment 148474
  --> https://bugs.kde.org/attachment.cgi?id=148474&action=edit
Screenshot of ClassiK window decoration with 20% opacity titlebars/borders and
blur on, corner radius=4, shadows disabled to emphasise bug. The corners
exhibit very blocky aliasing.

Hello, I have made a first attempt at implementing the new setBlurRegion() API
(due to land in Plasma 5.25) in my C++ Window Decoration. This can be found on
the branch at:
https://github.com/paulmcauley/classik/tree/kornerbug-fix-plasma5.25

I construct my window shape using a QPainterPath (called m_windowPath) and then
call setBlurRegion as follows:
setBlurRegion( QRegion( m_windowPath->toFillPolygon().toPolygon() ) ) ;

The results on X11 are excellent and produces very smooth corners when
transparency and blur are enabled. However, on Wayland, the corners of the blur
region are very blocky/aliased in appearance.


Operating System: openSUSE Tumbleweed 20220421
KDE Plasma Version: 5.24.80
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.2
Kernel Version: 5.17.3-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-7700HQ CPU @ 2.80GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 630
Manufacturer: Dell Inc.
Product Name: XPS 15 9560

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to