minor fix

This commit is contained in:
Xinhao Yuan 2019-08-26 22:11:06 -04:00
parent bec644e887
commit cdeedcf1ca
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ function module.start(c)
if c.floating or layout.machi_get_regions == nil then return end if c.floating or layout.machi_get_regions == nil then return end
local regions, draft_mode = layout.machi_get_regions(c.screen.workarea, c.screen.selected_tag) local regions, draft_mode = layout.machi_get_regions(c.screen.workarea, c.screen.selected_tag)
if regions == nil or #regions == 0 then
return
end
local infobox = api.wibox({ local infobox = api.wibox({
screen = screen, screen = screen,