[tests] Renderingservertest supports maximizing a window
This commit is contained in:
parent
21f8d7c23a
commit
8d5e14ebfe
1 changed files with 7 additions and 0 deletions
|
@ -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] {
|
||||
|
|
Loading…
Reference in a new issue