mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
Set the _KDE_SHADOW_OVERRIDE hint on the folderview popups.
svn path=/trunk/KDE/kdebase/apps/; revision=1069547
This commit is contained in:
parent
5364c13d60
commit
a06854cd00
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue