diff --git a/tests/waylandclienttest.cpp b/tests/waylandclienttest.cpp index 7d5f0fb53f..3c4d01d93b 100644 --- a/tests/waylandclienttest.cpp +++ b/tests/waylandclienttest.cpp @@ -145,6 +145,17 @@ void WaylandClientTest::setupRegistry(Registry *registry) if (key == KEY_Q && state == Keyboard::KeyState::Released) { QCoreApplication::instance()->quit(); } + if (key == KEY_F && state == Keyboard::KeyState::Released) { + if (m_shellSurface) { + static bool s_fullscreen = false; + s_fullscreen = !s_fullscreen; + if (s_fullscreen) { + m_shellSurface->setFullscreen(); + } else { + m_shellSurface->setToplevel(); + } + } + } } ); }