Use Qt::Tool window flags for popups to avoid having them shown over screensaver.
BUG:179924 I do not have a working copy of kdelibs 4.2 at the moment. Can someone backport the fix? svn path=/trunk/KDE/kdelibs/; revision=946749
This commit is contained in:
parent
570242531f
commit
d10641c35d
@ -275,7 +275,8 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
|
||||
//stuff out of your Dialog (extenders). Monitor WindowDeactivate events so we can
|
||||
//emulate the same kind of behavior as Qt::Popup (close when you click somewhere
|
||||
//else.
|
||||
Qt::WindowFlags wflags = Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint;
|
||||
//Use Qt::Tool otherwise dialogs get shown over screensaver (bug #179924).
|
||||
Qt::WindowFlags wflags = Qt::Tool | Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint;
|
||||
|
||||
if (passive) {
|
||||
wflags |= Qt::X11BypassWindowManagerHint;
|
||||
@ -455,10 +456,12 @@ void PopupApplet::setPassivePopup(bool passive)
|
||||
d->passive = passive;
|
||||
|
||||
if (d->dialog) {
|
||||
Qt::WindowFlags wflags = Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint;
|
||||
Qt::WindowFlags wflags = d->dialog->windowFlags();
|
||||
|
||||
if (d->passive) {
|
||||
wflags |= Qt::X11BypassWindowManagerHint;
|
||||
} else {
|
||||
wflags &= ~Qt::X11BypassWindowManagerHint;
|
||||
}
|
||||
|
||||
d->dialog->setWindowFlags(wflags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user