The attached patch fixes a little issue with incwfact and setwfact. Both
didn't call the property hook, which resulted in wfact updates being
delayed.

-- 
GCS/IT/M d- s+:- a--- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o--
K- w--- O M-- V PS+ PE- Y+ PGP+++ t+ 5 X+ R tv+ b++ DI+++ D+++ G+
e- h! r y+

    Gregor Best
From 3e8139a2a26279a4567e8762f266f8c0ec5e576e Mon Sep 17 00:00:00 2001
From: Gregor Best <[email protected]>
Date: Tue, 14 Jul 2009 20:15:18 +0200
Subject: [PATCH] awful.client: call property hook on wfact change

Signed-off-by: Gregor Best <[email protected]>
---
 lib/awful/client.lua.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in
index 87bc74b..4f97f9e 100644
--- a/lib/awful/client.lua.in
+++ b/lib/awful/client.lua.in
@@ -750,6 +750,8 @@ function setwfact(wfact, c)
             colfact[i] = (colfact[i] * rest) / total
         end
     end
+
+    hooks.user.call("property", t, "windowfact")
 end
 
 --- Increment a client's window factor
@@ -771,6 +773,8 @@ function incwfact(add, c)
 
     -- keep our ratios normalized
     normalize(colfact, w.num)
+
+    hooks.user.call("property", t, "windowfact")
 end
 
 --- Get a client dockable state.
-- 
1.6.3.3

Attachment: pgpdrXJMEyms2.pgp
Description: PGP signature

Reply via email to