From a7f2600a38050bdff34d6e8d25e3f6ac966c57fe Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 22 Feb 2015 19:51:10 +0000 Subject: [PATCH] layout: attached_connect_signal is deprecated --- lib/awful/layout/init.lua | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/lib/awful/layout/init.lua b/lib/awful/layout/init.lua index 643891cd..6d3157de 100755 --- a/lib/awful/layout/init.lua +++ b/lib/awful/layout/init.lua @@ -10,14 +10,15 @@ -- Grab environment we need local ipairs = ipairs local type = type -local tag = require("awful.tag") local util = require("awful.util") local ascreen = require("awful.screen") local capi = { screen = screen, awesome = awesome, - client = client + client = client, + tag = tag } +local tag = require("awful.tag") local client = require("awful.client") local timer = require("gears.timer") @@ -178,15 +179,17 @@ local function arrange_tag(t) end capi.screen.add_signal("arrange") + +capi.tag.connect_signal("property::mwfact", arrange_tag) +capi.tag.connect_signal("property::nmaster", arrange_tag) +capi.tag.connect_signal("property::ncol", arrange_tag) +capi.tag.connect_signal("property::layout", arrange_tag) +capi.tag.connect_signal("property::windowfact", arrange_tag) +capi.tag.connect_signal("property::selected", arrange_tag) +capi.tag.connect_signal("property::activated", arrange_tag) +capi.tag.connect_signal("tagged", arrange_tag) + for s = 1, capi.screen.count() do - tag.attached_connect_signal(s, "property::mwfact", arrange_tag) - tag.attached_connect_signal(s, "property::nmaster", arrange_tag) - tag.attached_connect_signal(s, "property::ncol", arrange_tag) - tag.attached_connect_signal(s, "property::layout", arrange_tag) - tag.attached_connect_signal(s, "property::windowfact", arrange_tag) - tag.attached_connect_signal(s, "property::selected", arrange_tag) - tag.attached_connect_signal(s, "property::activated", arrange_tag) - tag.attached_connect_signal(s, "tagged", arrange_tag) capi.screen[s]:connect_signal("property::workarea", function(screen) layout.arrange(screen.index) end)