Internal windows cannot be minimized
Summary: This change ensures that the DebugConsole does not have a minimize button. BUG: 372000 FIXED-IN: 5.8.4 Reviewers: #kwin, #plasma_on_wayland, broulik Subscribers: plasma-devel, kwin Tags: #plasma_on_wayland, #kwin Differential Revision: https://phabricator.kde.org/D3244
This commit is contained in:
parent
fb4b0c40ef
commit
db58c421eb
2 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue