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

--- Comment #44 from Paul McAuley <k...@paulmcauley.com> ---
It seems that the problem is not with the code of the blur effect itself (as
Vlad has already pointed out), rather that the following properties are not
being set by the kwin client and in an interface to your decoration plugin in
kdecoration:

EffectWindow (libkwineffects/kwineffects.h)

/**
* Whether the window has an own shape
*/
Q_PROPERTY(bool shaped READ hasOwnShape)
/**
* The Window's shape
*/
Q_PROPERTY(QRegion shape READ shape)


I have no idea if a QRegion is an efficient way to clip (in my ClassikStyles
decoration (
https://github.com/paulmcauley/classikstyles/tree/paulmcauley/cornerblurfix/ )
I already use QPainterPaths to clip the corners of my buttons and find
QPainterPaths easier to work with and to construct rounded rectangles or any
shape you want). I have preliminarily added a windowShape() method to my
decoration which converts a QPainterPath of my window shape to a FillPolygon,
then to a Polygon, then to a QRegion (!), a shared pointer to which is then
returned.

I was then investigating how to glue these two together through the kdecoration
and the kwin client classes, but can't continue for now due to bug 435862
preventing testing.

Once we have binary decoration plugins working by being able to return a
windowShape(), this functionality could be easily added to Aurorae decorations
for the limited case of rounded rectangles if the Aurorae rc files were
extended to have a CornerRadius property.

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

Reply via email to