Commit 8d5e14eb authored by Martin Flöser's avatar Martin Flöser
Browse files

[tests] Renderingservertest supports maximizing a window

parent 21f8d7c2
......@@ -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] {
......
Supports Markdown
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