diff --git a/lib/awful/widget/layoutbox.lua b/lib/awful/widget/layoutbox.lua index c5f8ed3ed..5c1df49e0 100644 --- a/lib/awful/widget/layoutbox.lua +++ b/lib/awful/widget/layoutbox.lua @@ -48,6 +48,13 @@ function layoutbox.new(screen) boxes = setmetatable({}, { __mode = "kv" }) capi.tag.connect_signal("property::selected", update_from_tag) capi.tag.connect_signal("property::layout", update_from_tag) + capi.tag.connect_signal("property::screen", function() + for s, w in pairs(boxes) do + if s.valid then + update(w, s) + end + end + end) layoutbox.boxes = boxes end