Activate next window when an X11 window is minimized

It matches the behavior of XdgToplevelWindow.

BUG: 479388
This commit is contained in:
Vlad Zahorodnii 2024-01-31 16:19:17 +02:00 committed by Xaver Hugl
parent 880ce92fb2
commit 5896bab86f

View file

@ -1687,6 +1687,11 @@ bool X11Window::isMinimizable() const
void X11Window::doMinimize()
{
if (m_managed) {
if (isMinimized()) {
workspace()->activateNextWindow(this);
}
}
if (isShade()) {
// NETWM restriction - KWindowInfo::isMinimized() == Hidden && !Shaded
info->setState(isMinimized() ? NET::States() : NET::Shaded, NET::Shaded);