From 2d39e53ef3f003d9e2ee5f98593c44caca05ce2a Mon Sep 17 00:00:00 2001 From: Rastislav Barlik Date: Sat, 26 May 2018 22:55:14 +0100 Subject: [PATCH] Fix incwfact() error with maximized windows When the window is maximized, calling incwfact() results in an error because `w` is nil, return instead. --- lib/awful/client.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/awful/client.lua b/lib/awful/client.lua index ea5457cb..21f06cc9 100644 --- a/lib/awful/client.lua +++ b/lib/awful/client.lua @@ -974,6 +974,8 @@ function client.incwfact(add, c) local t = c.screen.selected_tag local w = client.idx(c) + if not w then return end + local data = t.windowfact or {} local colfact = data[w.col] or {} local curr = colfact[w.idx] or 1