Skip to content
Snippets Groups Projects
Commit a6288628 authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

Fix bug where the tagbar was duplicated for all screens

parent 0b19c1a4
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ s.mytaglist = awful.widget.taglist{
screen = s,
filter = awful.widget.taglist.filter.all,
buttons = taglist_buttons,
layout = taggrid.gridlayout
layout = taggrid.getlayout()
}
```
......
......@@ -25,9 +25,9 @@ taggrid.tags = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "[", "]", "
"1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "[", "]", "←"
}
function taggrid.getlayout()
-- Create a gridlayout for the above tags
taggrid.gridlayout = wibox.widget {
local layout = wibox.widget {
forced_num_cols = taggrid.tag_offset,
forced_num_rows = taggrid.tag_column_count,
--min_rows_size = 10,
......@@ -36,6 +36,9 @@ taggrid.tags = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "[", "]", "
layout = wibox.layout.grid
}
return layout
end
-- View the next tag to the left, wrapping on the current row
-- Replacing awful.tag.viewprev
function taggrid.viewprev()
......@@ -82,6 +85,8 @@ function taggrid.viewnext()
tag = screen.tags[curidx + 1]
end
if tag then
-- Can be replaced with awful.tag.viewidx(i,[screen])
-- view_only() is deprecated
tag:view_only()
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment