mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Fix incwfact() error with maximized windows
When the window is maximized, calling incwfact() results in an error because `w` is nil, return instead.
This commit is contained in:
parent
4e17cc6bfc
commit
2d39e53ef3
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue