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:
parent
4adbfc41f9
commit
2f2a3f7a22
@ -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);
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ class XWindowInterface : public AbstractWindowInterface {
|
||||
|
||||
public:
|
||||
XWindowInterface(QQuickWindow *const view, QObject *parent);
|
||||
~XWindowInterface() override;
|
||||
virtual ~XWindowInterface();
|
||||
|
||||
void setDockDefaultFlags() override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user