Commit 8a02a383 authored by Thomas Lübking's avatar Thomas Lübking
Browse files

unset/set NETWM shading state around minimizing

BUG: 81271
REVIEW: 103377
parent ff0cc660
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment