Set the _KDE_SHADOW_OVERRIDE hint on the folderview popups.

svn path=/trunk/KDE/kdebase/apps/; revision=1069547
This commit is contained in:
Fredrik Höglund 2010-01-03 18:12:11 +00:00
parent 5364c13d60
commit a06854cd00
2 changed files with 10 additions and 0 deletions

View file

@ -33,6 +33,7 @@
#ifdef Q_WS_X11
# include <QX11Info>
# include <X11/Xlib.h>
#endif
@ -47,6 +48,9 @@ Dialog::Dialog(QWidget *parent)
if (!QX11Info::isCompositingManagerRunning()) {
setAttribute(Qt::WA_NoSystemBackground);
}
Atom atom = XInternAtom(QX11Info::display(), "_KDE_SHADOW_OVERRIDE", False);
XChangeProperty(QX11Info::display(), winId(), atom, atom, 32, PropModeReplace, 0, 0);
#endif
KWindowSystem::setState(effectiveWinId(), NET::SkipTaskbar | NET::SkipPager);

View file

@ -60,6 +60,7 @@
#ifdef Q_WS_X11
# include <QX11Info>
# include <X11/Xlib.h>
#endif
@ -125,6 +126,11 @@ PopupView::PopupView(const KUrl &url, const QPoint &pos,
pt.ry() = available.top();
}
#ifdef Q_WS_X11
Atom atom = XInternAtom(QX11Info::display(), "_KDE_SHADOW_OVERRIDE", False);
XChangeProperty(QX11Info::display(), winId(), atom, atom, 32, PropModeReplace, 0, 0);
#endif
move(pt);
show();