summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2021-01-03 20:11:19 -0500
committerstreetturtle <streetturtle@gmail.com>2021-01-03 20:11:19 -0500
commit043c2b94667fa2edf73e810cc31678960eac4c20 (patch)
tree4780aba2503942ddbc5b979de947ba2367d484c4
parenta04a68ff9f49f237f31e0a4d3c2513f0f9c8618d (diff)
[jira] move error marker to the top right corner
-rw-r--r--jira-widget/jira.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/jira-widget/jira.lua b/jira-widget/jira.lua
index 9a89a0d..5a568b5 100644
--- a/jira-widget/jira.lua
+++ b/jira-widget/jira.lua
@@ -41,9 +41,9 @@ local jira_widget = wibox.widget {
},
{
id = 'd',
- draw = function(_, _, cr, _, height)
+ draw = function(_, _, cr, width, height)
cr:set_source(color(beautiful.fg_urgent))
- cr:arc(height/4, height/4, height/4, 0, math.pi*2)
+ cr:arc(width - height/6, height/6, height/6, 0, math.pi*2)
cr:fill()
end,
visible = false,