~unwox/awm-floatbar

1efb02ca37e71da8f71626f9eb8c697b86394f16 — Vlad Gorenkin 6 years ago dbdc8e6 master
Make all clients floating when switching to floating layout
1 files changed, 6 insertions(+), 1 deletions(-)

M init.lua
M init.lua => init.lua +6 -1
@@ 57,7 57,12 @@ function floatbar.init()

  tag.connect_signal("property::layout", function(t) -- luacheck: globals tag
    for _, c in pairs(t:clients()) do
      set_titlebar(c, t.layout == awful.layout.suit.floating)
      if t.layout ~= awful.layout.suit.floating then
        return
      end

      c.floating = true
      set_titlebar(c, c.floating)
    end
  end)
end