diff --git a/src/x11window.cpp b/src/x11window.cpp index 7041fb0c86..df5e5ba852 100644 --- a/src/x11window.cpp +++ b/src/x11window.cpp @@ -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);