unset/set NETWM shading state around minimizing

BUG: 81271
REVIEW: 103377
This commit is contained in:
Thomas Lübking 2011-12-10 15:29:59 +01:00
parent 2ff74f83be
commit 450d90ceb7

View file

@ -982,6 +982,9 @@ void Client::minimize(bool avoid_animation)
return;
}
if (isShade()) // NETWM restriction - KWindowInfo::isMinimized() == Hidden && !Shaded
info->setState(0, NET::Shaded);
#ifdef KWIN_BUILD_SCRIPTING
//Scripting call. Does not use a signal/slot mechanism
//as ensuring connections was a bit difficult between
@ -1020,6 +1023,9 @@ void Client::unminimize(bool avoid_animation)
return;
}
if (isShade()) // NETWM restriction - KWindowInfo::isMinimized() == Hidden && !Shaded
info->setState(NET::Shaded, NET::Shaded);
#ifdef KWIN_BUILD_SCRIPTING
SWrapper::WorkspaceProxy* ws_wrap = SWrapper::WorkspaceProxy::instance();
if (ws_wrap != 0) {