Fix minimize rule
It was only applied initially, but force did not work. REVIEW: 103364
This commit is contained in:
parent
786252f7ef
commit
3955d891d6
1 changed files with 7 additions and 0 deletions
|
@ -976,6 +976,9 @@ void Client::minimize(bool avoid_animation)
|
|||
{
|
||||
if (!isMinimizable() || isMinimized())
|
||||
return;
|
||||
if (!rules()->checkMinimize(true)) {
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef KWIN_BUILD_SCRIPTING
|
||||
//Scripting call. Does not use a signal/slot mechanism
|
||||
|
@ -1011,6 +1014,10 @@ void Client::unminimize(bool avoid_animation)
|
|||
if (!isMinimized())
|
||||
return;
|
||||
|
||||
if (rules()->checkMinimize(false)) {
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef KWIN_BUILD_SCRIPTING
|
||||
SWrapper::WorkspaceProxy* ws_wrap = SWrapper::WorkspaceProxy::instance();
|
||||
if (ws_wrap != 0) {
|
||||
|
|
Loading…
Reference in a new issue