From 3955d891d62d82e22b4ed5788cda7ef9934b420b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 9 Dec 2011 14:39:17 +0100 Subject: [PATCH] Fix minimize rule It was only applied initially, but force did not work. REVIEW: 103364 --- client.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client.cpp b/client.cpp index 52d181a1cc..e27734d412 100644 --- a/client.cpp +++ b/client.cpp @@ -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) {