Minor fix

This commit is contained in:
Daan Vanoverloop 2019-08-27 14:17:55 +02:00
parent ad3718e7a8
commit 24b01e0697
1 changed files with 3 additions and 1 deletions

View File

@ -186,7 +186,7 @@ vicious.register(cpuwidget, vicious.widgets.cpu, "  $1 ", 1)
memwidget = wibox.widget.textbox()
vicious.cache(vicious.widgets.mem)
vicious.register(memwidget, vicious.widgets.mem, " $2 MiB ", 1)
vicious.register(memwidget, vicious.widgets.mem, " $2 MiB ", 1)
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
screen.connect_signal("property::geometry", set_wallpaper)
@ -259,6 +259,8 @@ awful.screen.connect_for_each_screen(function(s)
dock_hide_timer:connect_signal("timeout", function() stopgaps(s.mywibox) end )
dock_trigger:connect_signal("mouse::enter", function() startgaps(s.mywibox) end)
s.mywibox:connect_signal("mouse::enter", function() if dock_hide_timer.started then dock_hide_timer:stop() end end)
s.mywibox:connect_signal("mouse::leave", function() dock_hide_timer:again() end)
dock_trigger:connect_signal("mouse::enter", function() if dock_hide_timer.started then dock_hide_timer:stop() end end)
dock_trigger:connect_signal("mouse::leave", function() dock_hide_timer:again() end)
end)