https://bugs.kde.org/show_bug.cgi?id=482294
Bug ID: 482294 Summary: KWindowEffects::enableBlurBehind() region is no longer relative to the top-left corner of the client area on Plasma6 Wayland Classification: Plasma Product: kwin Version: master Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: effects-various Assignee: kwin-bugs-n...@kde.org Reporter: k...@paulmcauley.com Target Milestone: --- Created attachment 166346 --> https://bugs.kde.org/attachment.cgi?id=166346&action=edit Illustration on Plasma6 of BlurBehind not being applied to the client top-left (scaling 100%) I am in the middle of porting an Application Style from Plasma 5 to Plasma 6 (https://github.com/paulmcauley/klassy/tree/plasma6.0). In Plasma 5 my Application Style could blur the tools area as in the screenshot at https://github.com/paulmcauley/klassy/raw/plasma6.0/screenshots/button_icon_menu.png?raw=true . This blur is applied by using the following function: KWindowEffects::enableBlurBehind(mw->windowHandle(), true, rect); ( https://github.com/paulmcauley/klassy/blob/861b93c30b6a0457427c488805a78f0ac770103d/kstyle/breezestyle.cpp#L1436 ) Note that I need to specify the rect parameter as a QRegion, which the API documentation states "The region is relative to the top-left corner of the client area". ( https://api.kde.org/frameworks/kwindowsystem/html/namespaceKWindowEffects.html#a23a8c1dd33fb9a4a9fa0bbde4ae830cb ) My problem is that on Plasma 6 Wayland the blurred region is not in the correct position, and looks like the attached screenshot. Looking at debug output, the height of the region is specified in this instance as 46 pixels, but the actual blurred height in the client is smaller. The unblurred gap is equivalent to the titlebar height, with the blurred region now 46 pixels from the top of the decoration, suggesting that the BlurBehind effect region is now relative to the decoration top-left rather than the client top-left. (Note that on Plasma 6 X11 this problem does not occur, it only is a problem on Wayland). Note also that this bug also applies to the style of both Qt5 apps (linked to KF5 version of KWindowSystem as in the Dolphin screenshot) and Qt6 apps (linked to KF6 version of KWindowSystem) hence I suspect it may be a wider problem than just in KWindowSystem. Operating System: openSUSE Tumbleweed 20240227 KDE Plasma Version: 6.0.80 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.7.6-1-default (64-bit) Graphics Platform: Wayland Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz Memory: 15.5 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 620 Manufacturer: Google Product Name: Pantheon System Version: 1.0 -- You are receiving this mail because: You are watching all bug changes.