more awesome 4.0 fixes

This commit is contained in:
crater2150 2017-02-16 09:51:01 +01:00
parent a43b908350
commit 7738e9ad32
5 changed files with 40 additions and 15 deletions

View file

@ -1,5 +1,6 @@
local wibox = require("wibox")
local vicious = require("vicious")
local naughty = require("naughty")
local modkey = conf.modkey or "Mod4"
local awful = require("awful")
local tag = require("awful.tag")
@ -30,7 +31,7 @@ awful.button({ }, 5, function(t) awful.tag.viewprev(awful.tag.getscreen(t)) end)
-- setup {{{
--------------------------------------------------------------------------------
local function setup()
for s = 1, screen.count() do
for s in screen do
wlist[s]={}
bars[s]={}
@ -97,7 +98,7 @@ end
-- force update of a widget
local function update(widgetname, index)
for s = 1, screen.count() do
for s in screen do
if wlist[s] ~= nil and wlist[s][widgetname] ~= nil then
if index ~= nil then
vicious.force({ wlist[s][widgetname][index] })