On KDE, stop the OSD from appearing in the middle of the screen, and under other windows.

This commit is contained in:
David Sansome 2010-04-22 15:26:33 +00:00
parent 9dca93e276
commit 1d6d2e74b8

View File

@ -53,9 +53,8 @@ OSDPretty::OSDPretty(Mode mode, QWidget *parent)
fading_enabled_(false),
fader_(new QTimeLine(300, this))
{
Qt::WindowFlags flags = Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint;
if (mode == Mode_Popup)
flags |= Qt::SplashScreen;
Qt::WindowFlags flags = Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint |
Qt::X11BypassWindowManagerHint;
setWindowFlags(flags);
setAttribute(Qt::WA_TranslucentBackground, true);