if a client has not the property we are searching for, we dont match
it otherwize "it's the window open to all doors":
- bad rules can match
- client without role for exemple will match a rule { role = "toto" }
From c3d29b4115415d7cbb4634a9ae126830657ef069 Mon Sep 17 00:00:00 2001
From: Cedric GESTES <[email protected]>
Date: Thu, 3 Sep 2009 19:21:59 +0200
Subject: [PATCH] rules: if a client has not the property we search: dont match

Signed-off-by: Cedric GESTES <[email protected]>
---
 lib/awful/rules.lua.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/awful/rules.lua.in b/lib/awful/rules.lua.in
index ac4b018..5fa86bc 100644
--- a/lib/awful/rules.lua.in
+++ b/lib/awful/rules.lua.in
@@ -71,6 +71,8 @@ function match(c, rule)
             elseif c[field] ~= value then
                 return false
             end
+        else
+            return false
         end
     end
     return true
-- 
1.6.0.4

Reply via email to