PDA

View Full Version : KWin's shadows and frameless window



EuroElessar
10th March 2009, 12:08
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?

wysota
11th March 2009, 14:50
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.

EuroElessar
14th March 2009, 14:29
thanks, this works

al3000
10th July 2009, 11:50
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?

EuroElessar
12th July 2009, 17:16
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..