picom icon indicating copy to clipboard operation
picom copied to clipboard

[feature request] Support `_KDE_NET_WM_BLUR_BEHIND_REGION` X property

Open somebody1234 opened this issue 2 years ago • 8 comments

This is definitely far from an ideal solution, but afaict it's the closest thing there is to a standard X property for blur?

Here is the xprop command that supposedly enables blur for a window:

xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $wid

https://userbase.kde.org/Tutorials/Force_Transparency_And_Blur

somebody1234 avatar Jul 20 '23 04:07 somebody1234

why do we need it when we already have the blur-background-exclude option?

absolutelynothelix avatar Jul 20 '23 16:07 absolutelynothelix

the idea is that applications can set this property (and pray that the DE/WM supports blur via this property)

somebody1234 avatar Jul 20 '23 16:07 somebody1234

feel free to close, of course. this is just something that'd be nice to have, not like it hinders usability or anything

somebody1234 avatar Jul 20 '23 16:07 somebody1234

the idea is that applications can set this property (and pray that the DE/WM supports blur via this property)

this is just something that'd be nice to have, not like it hinders usability or anything

i understand, afaik we have a similar thing for opacity. but it seems that no one uses this property except kde itself.

feel free to close, of course.

i'll leave this open for now to see if anyone else is interested in having this property supported (cc @yshui).

absolutelynothelix avatar Jul 20 '23 17:07 absolutelynothelix

i understand, afaik we have a similar thing for opacity. but it seems that no one uses this property except kde itself.

What's interesting is that even in Qt source code there are some references to KDE. Very similar to OpenGL extensions on different GPUs.

https://code.qt.io/cgit/qt/qtbase.git/tree/src/plugins/platforms/xcb/qxcbwindow.cpp?h=5.9#n1809

Monsterovich avatar Jul 24 '23 01:07 Monsterovich

If you need this functionality, could try my fork (https://github.com/XoDefender/picom). There is support for _KDE_NET_WM_BLUR_BEHIND_REGION, _FLY_WM_BLUR_SIZE, _FLY_WM_BLUR_STRENGTH, _FLY_WM_BLUR_DEVIATION, _FLY_WM_BLUR_METHOD,

XoDefender avatar Jan 30 '24 10:01 XoDefender

oh this is nifty. _KDE_NET_WM_BLUR_BEHIND_REGION actually allows you to blur only parts of a window. our blur code already supports using a mask internally, should be doable.

yshui avatar Jan 30 '24 22:01 yshui