From 1f4b1094dc0b060d7683f3cf68b63bee83194649 Mon Sep 17 00:00:00 2001 From: Gokul Swami Date: Thu, 8 Apr 2021 07:21:26 -0700 Subject: [PATCH] Revert back to screen param --- docs/widgets/tag_preview.md | 6 +++--- widget/tag_preview.lua | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/widgets/tag_preview.md b/docs/widgets/tag_preview.md index 29c4642..ba5b025 100644 --- a/docs/widgets/tag_preview.md +++ b/docs/widgets/tag_preview.md @@ -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) diff --git a/widget/tag_preview.lua b/widget/tag_preview.lua index e5a2290..bf6510c 100644 --- a/widget/tag_preview.lua +++ b/widget/tag_preview.lua @@ -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