mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Merge pull request #2272 from barlik/patch-3
Fix incwfact() error with maximized windows
This commit is contained in:
commit
508b1f5ed5
2 changed files with 21 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
|
||||
|
|
|
@ -105,6 +105,25 @@ local steps = {
|
|||
|
||||
return true
|
||||
end,
|
||||
|
||||
-- Ensure that window factor is ignored on maximized clients
|
||||
function()
|
||||
local c = client.get()[1]
|
||||
assert(c ~= nil)
|
||||
|
||||
local signal_count = 0
|
||||
c:connect_signal("property::windowfact", function()
|
||||
signal_count = signal_count + 1
|
||||
end)
|
||||
|
||||
c.maximized = true
|
||||
|
||||
awful.client.incwfact(0.1, c)
|
||||
awful.client.setwfact(0.5, c)
|
||||
assert(signal_count == 0)
|
||||
|
||||
return true
|
||||
end,
|
||||
}
|
||||
|
||||
local original_count, c1, c2 = 0
|
||||
|
|
Loading…
Reference in a new issue