unset/set NETWM shading state around minimizing
BUG: 81271 REVIEW: 103377
This commit is contained in:
parent
2ff74f83be
commit
450d90ceb7
1 changed files with 6 additions and 0 deletions
|
@ -982,6 +982,9 @@ void Client::minimize(bool avoid_animation)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isShade()) // NETWM restriction - KWindowInfo::isMinimized() == Hidden && !Shaded
|
||||||
|
info->setState(0, NET::Shaded);
|
||||||
|
|
||||||
#ifdef KWIN_BUILD_SCRIPTING
|
#ifdef KWIN_BUILD_SCRIPTING
|
||||||
//Scripting call. Does not use a signal/slot mechanism
|
//Scripting call. Does not use a signal/slot mechanism
|
||||||
//as ensuring connections was a bit difficult between
|
//as ensuring connections was a bit difficult between
|
||||||
|
@ -1020,6 +1023,9 @@ void Client::unminimize(bool avoid_animation)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isShade()) // NETWM restriction - KWindowInfo::isMinimized() == Hidden && !Shaded
|
||||||
|
info->setState(NET::Shaded, NET::Shaded);
|
||||||
|
|
||||||
#ifdef KWIN_BUILD_SCRIPTING
|
#ifdef KWIN_BUILD_SCRIPTING
|
||||||
SWrapper::WorkspaceProxy* ws_wrap = SWrapper::WorkspaceProxy::instance();
|
SWrapper::WorkspaceProxy* ws_wrap = SWrapper::WorkspaceProxy::instance();
|
||||||
if (ws_wrap != 0) {
|
if (ws_wrap != 0) {
|
||||||
|
|
Loading…
Reference in a new issue