Commit 618e0143 authored by Marco Martin's avatar Marco Martin
Browse files

don't set manually all those flags

parent 4b954a4d
......@@ -39,6 +39,7 @@ FullScreenOverlay::FullScreenOverlay(QQuickWindow *parent)
setWindowState(Qt::WindowFullScreen);
// connect(this, &FullScreenOverlay::activeFocusItemChanged, this, [this]() {qWarning()<<"hide()";});
initWayland();
setWindowStates(Qt::WindowFullScreen);
}
FullScreenOverlay::~FullScreenOverlay()
......@@ -98,7 +99,8 @@ bool FullScreenOverlay::event(QEvent *e)
QPlatformSurfaceEvent *pe = static_cast<QPlatformSurfaceEvent*>(e);
if (pe->surfaceEventType() == QPlatformSurfaceEvent::SurfaceCreated) {
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager | NET::FullScreen);
//KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager | NET::FullScreen);
// setWindowStates(Qt::WindowFullScreen);
if (!m_acceptsFocus) {
setFlags(flags() | Qt::FramelessWindowHint|Qt::WindowDoesNotAcceptFocus);
//KWindowSystem::setType(winId(), NET::Dock);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment