[tests] Renderingservertest supports maximizing a window

This commit is contained in:
Martin Gräßlin 2014-12-15 09:51:28 +01:00
parent 21f8d7c23a
commit 8d5e14ebfe

View file

@ -79,6 +79,13 @@ void CompositorWindow::surfaceCreated(KWayland::Server::ShellSurfaceInterface *s
}
}
);
connect(surface, &ShellSurfaceInterface::maximizedChanged, this,
[surface, this](bool maximized) {
if (maximized) {
surface->requestSize(size());
}
}
);
connect(surface->surface(), &SurfaceInterface::damaged, this, static_cast<void (CompositorWindow::*)()>(&CompositorWindow::update));
connect(surface, &ShellSurfaceInterface::destroyed, this,
[surface, this] {