commit
693c225445
|
@ -238,14 +238,8 @@ capi.tag.connect_signal("property::useless_gap", arrange_tag)
|
|||
capi.tag.connect_signal("property::master_fill_policy", arrange_tag)
|
||||
capi.tag.connect_signal("tagged", arrange_tag)
|
||||
|
||||
for s = 1, capi.screen.count() do
|
||||
capi.screen[s]:connect_signal("property::workarea", function(screen)
|
||||
layout.arrange(screen)
|
||||
end)
|
||||
capi.screen[s]:connect_signal("padding", function (screen)
|
||||
layout.arrange(screen)
|
||||
end)
|
||||
end
|
||||
capi.screen.connect_signal("property::workarea", layout.arrange)
|
||||
capi.screen.connect_signal("padding", layout.arrange)
|
||||
|
||||
capi.client.connect_signal("raised", function(c) layout.arrange(c.screen) end)
|
||||
capi.client.connect_signal("lowered", function(c) layout.arrange(c.screen) end)
|
||||
|
|
|
@ -848,9 +848,7 @@ capi.tag.add_signal("property::urgent")
|
|||
capi.tag.add_signal("property::urgent_count")
|
||||
|
||||
capi.screen.add_signal("tag::history::update")
|
||||
for s = 1, capi.screen.count() do
|
||||
capi.screen[s]:connect_signal("tag::history::update", tag.history.update)
|
||||
end
|
||||
capi.screen.connect_signal("tag::history::update", tag.history.update)
|
||||
|
||||
function tag.mt:__call(...)
|
||||
return tag.new(...)
|
||||
|
|
|
@ -362,7 +362,7 @@ function util.get_rectangle_in_direction(dir, recttbl, cur)
|
|||
local target = nil
|
||||
|
||||
-- We check each object
|
||||
for i, rect in ipairs(recttbl) do
|
||||
for i, rect in pairs(recttbl) do
|
||||
-- Check geometry to see if object is located in the right direction.
|
||||
if is_in_direction(dir, cur, rect) then
|
||||
-- Calculate distance between current and checked object.
|
||||
|
|
Loading…
Reference in New Issue