~unwox/awm-floatbar

369e291ba48c9e0b2dbcadba5a9a66feff37505d — Vlad Gorenkin 6 years ago d197eca
Fix fullscreen handling of clients with titlebars
1 files changed, 5 insertions(+), 0 deletions(-)

M init.lua
M init.lua => init.lua +5 -0
@@ 45,6 45,11 @@ function floatbar.init()
    set_titlebar(c, c.floating)
  end)

  client.connect_signal("property::fullscreen", function(c)
    set_titlebar(c, not c.fullscreen and c.floating)
    c:emit_signal("request::geometry", "fullscreen", { store_geometry = false })
  end)

  client.connect_signal("tagged", function(c)
    c.floating = c.first_tag.layout == awful.layout.suit.floating
    set_titlebar(c, c.floating)