[backends/wayland] ShellSurface opened as a toplevel instead of fullscreen
Going towards nested setup.
This commit is contained in:
parent
eafded7127
commit
3f6cb8812b
2 changed files with 3 additions and 13 deletions
|
@ -308,7 +308,6 @@ WaylandBackend::~WaylandBackend()
|
|||
|
||||
void WaylandBackend::init()
|
||||
{
|
||||
connect(this, &WaylandBackend::shellSurfaceSizeChanged, this, &WaylandBackend::checkBackendReady);
|
||||
connect(m_registry, &Registry::compositorAnnounced, this,
|
||||
[this](quint32 name) {
|
||||
m_compositor->setup(m_registry->bindCompositor(name, 1));
|
||||
|
@ -441,10 +440,11 @@ void WaylandBackend::createSurface()
|
|||
m_seat->setInstallCursor(true);
|
||||
}
|
||||
if (m_shell->isValid()) {
|
||||
// map the surface as fullscreen
|
||||
m_shellSurface = m_shell->createSurface(m_surface, this);
|
||||
m_shellSurface->setFullscreen();
|
||||
connect(m_shellSurface, &ShellSurface::sizeChanged, this, &WaylandBackend::shellSurfaceSizeChanged);
|
||||
m_shellSurface->setSize(initialWindowSize());
|
||||
m_shellSurface->setToplevel();
|
||||
setReady(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -456,15 +456,6 @@ QSize WaylandBackend::shellSurfaceSize() const
|
|||
return QSize();
|
||||
}
|
||||
|
||||
void WaylandBackend::checkBackendReady()
|
||||
{
|
||||
if (!shellSurfaceSize().isValid()) {
|
||||
return;
|
||||
}
|
||||
disconnect(this, &WaylandBackend::shellSurfaceSizeChanged, this, &WaylandBackend::checkBackendReady);
|
||||
setReady(true);
|
||||
}
|
||||
|
||||
Screens *WaylandBackend::createScreens(QObject *parent)
|
||||
{
|
||||
return new WaylandScreens(this, parent);
|
||||
|
|
|
@ -134,7 +134,6 @@ private:
|
|||
void initConnection();
|
||||
void createSurface();
|
||||
void destroyOutputs();
|
||||
void checkBackendReady();
|
||||
wl_display *m_display;
|
||||
KWayland::Client::EventQueue *m_eventQueue;
|
||||
KWayland::Client::Registry *m_registry;
|
||||
|
|
Loading…
Reference in a new issue