1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-01 13:17:44 +03:00

more abstraction

This commit is contained in:
Johan Smith Agudelo Rodriguez 2016-12-30 16:28:39 -05:00 committed by Michail Vourlakos
parent 4adbfc41f9
commit 2f2a3f7a22
2 changed files with 7 additions and 1 deletions

View File

@ -47,6 +47,11 @@ XWindowInterface::~XWindowInterface()
void XWindowInterface::setDockDefaultFlags()
{
m_view->setFlags(Qt::FramelessWindowHint
| Qt::WindowStaysOnTopHint
| Qt::NoDropShadowWindowHint
| Qt::WindowDoesNotAcceptFocus);
NETWinInfo winfo(QX11Info::connection()
, static_cast<xcb_window_t>(m_view->winId())
, static_cast<xcb_window_t>(m_view->winId())
@ -54,6 +59,7 @@ void XWindowInterface::setDockDefaultFlags()
winfo.setAllowedActions(NET::ActionChangeDesktop);
KWindowSystem::setType(m_view->winId(), NET::Dock);
KWindowSystem::setState(m_view->winId(), NET::SkipTaskbar | NET::SkipPager);
KWindowSystem::setOnAllDesktops(m_view->winId(), true);
}

View File

@ -15,7 +15,7 @@ class XWindowInterface : public AbstractWindowInterface {
public:
XWindowInterface(QQuickWindow *const view, QObject *parent);
~XWindowInterface() override;
virtual ~XWindowInterface();
void setDockDefaultFlags() override;