KWin's shadows and frameless window
I've done the widget with it's own impl of paintEvent and set Qt::FramelessWindowHint for it. Also I've set attribute Qt::WA_TranslucentBackground to true. At widget I draw argb pixmap.
So the problem is that KWin draws the shadow everywere under the widget, but it's needed that it wouldn't draw it at all, or only under the certain places. Is it possible?
Re: KWin's shadows and frameless window
You might try setting a mask on your window using QWidget::setMask(). If this doesn't work then probably not much can be done. And if anything can be done, I think it should be in KWin.
Re: KWin's shadows and frameless window
Re: KWin's shadows and frameless window
Quote:
Originally Posted by
wysota
You might try setting a mask on your window using
QWidget::setMask(). If this doesn't work then probably not much can be done. And if anything can be done, I think it should be in KWin.
setMask() is very low quality. If used "compiz" (KWin effects off), FramelessWindow shadow no draw.
If used FramelessWindow with KWin (without setMask()) and send "qdbus org.kde.kwin /KWin reconfigure", shadow disappears, but not immediately.
May be a bug in KWin?
Re: KWin's shadows and frameless window
Quote:
Originally Posted by
al3000
setMask() is very low quality. If used "compiz" (KWin effects off), FramelessWindow shadow no draw.
If used FramelessWindow with KWin (without setMask()) and send "qdbus org.kde.kwin /KWin reconfigure", shadow disappears, but not immediately.
May be a bug in KWin?
Would it save shadows under other windows? I don't think so..