summaryrefslogtreecommitdiff
path: root/gitlab-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2021-01-03 20:11:00 -0500
committerstreetturtle <streetturtle@gmail.com>2021-01-03 20:11:00 -0500
commita04a68ff9f49f237f31e0a4d3c2513f0f9c8618d (patch)
tree239edce6310dedf78363002d0b3eacdf45944ee9 /gitlab-widget
parenteb742ed9d4c96d3f38a1d654070a0a8aca8850b7 (diff)
[gitlab] move error marker to the top right corner
Diffstat (limited to 'gitlab-widget')
-rw-r--r--gitlab-widget/gitlab.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab-widget/gitlab.lua b/gitlab-widget/gitlab.lua
index 5d771b9..c0716d7 100644
--- a/gitlab-widget/gitlab.lua
+++ b/gitlab-widget/gitlab.lua
@@ -35,9 +35,9 @@ local gitlab_widget = wibox.widget {
},
{
id = 'error_marker',
- 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,