diff --git a/autotests/integration/debug_console_test.cpp b/autotests/integration/debug_console_test.cpp index a21d9170a8..bff8195290 100644 --- a/autotests/integration/debug_console_test.cpp +++ b/autotests/integration/debug_console_test.cpp @@ -521,6 +521,7 @@ void DebugConsoleTest::testClosingDebugConsole() QVERIFY(c->isInternal()); QCOMPARE(c->internalWindow(), console->windowHandle()); QVERIFY(c->isDecorated()); + QCOMPARE(c->isMinimizable(), false); c->closeWindow(); QVERIFY(destroyedSpy.wait()); } diff --git a/shell_client.cpp b/shell_client.cpp index 1b4fd849c6..8315725801 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -582,6 +582,9 @@ bool ShellClient::isMaximizable() const bool ShellClient::isMinimizable() const { + if (m_internal) { + return false; + } return (!m_plasmaShellSurface || m_plasmaShellSurface->role() == PlasmaShellSurfaceInterface::Role::Normal); }