[tests] Renderingservertest supports maximizing a window

remotes/origin/work/zzag/autotests-target-api
Martin Gräßlin 11 years ago
parent 21f8d7c23a
commit 8d5e14ebfe
  1. 7
      src/wayland/tests/renderingservertest.cpp

@ -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…
Cancel
Save