Revert back to screen param
This commit is contained in:
parent
9289ec4f75
commit
1f4b1094dc
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue