Commit 0d626dc7 authored by Bhushan Shah's avatar Bhushan Shah 📱

Some changes

- uncomment to make it frameless window hint
- set window state to fullscreen
parent 02fd43ed
......@@ -35,8 +35,8 @@
FullScreenPanel::FullScreenPanel(QQuickWindow *parent)
: QQuickWindow(parent)
{
//setFlags(Qt::FramelessWindowHint);
//setWindowState(Qt::WindowFullScreen);
setFlags(Qt::FramelessWindowHint);
setWindowState(Qt::WindowFullScreen);
// connect(this, &FullScreenPanel::activeFocusItemChanged, this, [this]() {qWarning()<<"hide()";});
connect(this, &QWindow::activeChanged, this, &FullScreenPanel::activeChanged);
initWayland();
......@@ -72,6 +72,7 @@ void FullScreenPanel::initWayland()
m_plasmaShellSurface->setSkipTaskbar(true);
}
);
/*
connect(registry, &Registry::shellAnnounced, this,
[this, registry] (quint32 name, quint32 version) {
......@@ -85,7 +86,7 @@ void FullScreenPanel::initWayland()
//Additionally, errno was set to 71: Protocol error
m_shellSurface = m_shellInterface->createSurface(m_surface, this);
}
);
);*/
registry->setup();
connection->roundtrip();
}
......@@ -94,10 +95,7 @@ void FullScreenPanel::showEvent(QShowEvent *event)
{
using namespace KWayland::Client;
QQuickWindow::showEvent(event);
if (m_shellSurface) {
m_shellSurface->setFullscreen();
}
setWindowState(Qt::WindowFullScreen);
}
......
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