Activate next window when an X11 window is minimized
It matches the behavior of XdgToplevelWindow. BUG: 479388
This commit is contained in:
parent
880ce92fb2
commit
5896bab86f
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue