Revert back to screen param

This commit is contained in:
Gokul Swami 2021-04-08 07:21:26 -07:00
parent 9289ec4f75
commit 1f4b1094dc
2 changed files with 7 additions and 7 deletions

View File

@ -27,7 +27,7 @@ Here are the signals available:
-- bling::tag_preview::update -- first line is the signal
-- t (tag) -- indented lines are function parameters
-- bling::tag_preview::visibility
-- t (tag)
-- s (screen)
-- v (boolean)
```
@ -98,7 +98,7 @@ s.mytaglist = awful.widget.taglist {
-- BLING: Update the widget with the new tag
awesome.emit_signal("bling::tag_preview::update", c3)
-- BLING: Show the widget
awesome.emit_signal("bling::tag_preview::visibility", c3, true)
awesome.emit_signal("bling::tag_preview::visibility", s, true)
end
if self.bg ~= '#ff0000' then
@ -110,7 +110,7 @@ s.mytaglist = awful.widget.taglist {
self:connect_signal('mouse::leave', function()
-- BLING: Turn the widget off
awesome.emit_signal("bling::tag_preview::visibility", c3, false)
awesome.emit_signal("bling::tag_preview::visibility", s, false)
if self.has_backup then self.bg = self.backup end
end)

View File

@ -3,7 +3,7 @@
-- bling::tag_preview::update -- first line is the signal
-- t (tag) -- indented lines are function parameters
-- bling::tag_preview::visibility
-- t (tag)
-- s (screen)
-- v (boolean)
--
local awful = require("awful")
@ -183,9 +183,9 @@ local enable = function(opts)
widget_border_color, widget_border_width, geo, margin)
end)
awesome.connect_signal("bling::tag_preview::visibility", function(t, v)
tag_preview_box.x = t.screen.geometry.x + widget_x
tag_preview_box.y = t.screen.geometry.y + widget_y
awesome.connect_signal("bling::tag_preview::visibility", function(s, v)
tag_preview_box.x = s.geometry.x + widget_x
tag_preview_box.y = s.geometry.y + widget_y
tag_preview_box.visible = v
end)
end