From 1f54357d4046de14e46e9daddf0fa51a4c47f0d4 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 8 Dec 2021 22:03:46 +0100 Subject: [PATCH] xsecurelock: put clock a bit above to not be covered by login prompt --- bin/xsecurelock-saver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xsecurelock-saver b/bin/xsecurelock-saver index be50b5a..7938614 100755 --- a/bin/xsecurelock-saver +++ b/bin/xsecurelock-saver @@ -66,7 +66,7 @@ def on_overlay_draw(widget, cctx, ctx): ) cctx.set_font_size(ctx.font_size) _, _, twidth, theight, _, _ = cctx.text_extents("00:00") - text_position = wwidth // 2 - twidth // 2, wheight // 2 - theight // 2 + text_position = wwidth // 2 - twidth // 2, wheight // 3 - theight // 2 cctx.move_to(*text_position) cctx.set_source_rgba(1, 1, 1, 0.8) cctx.show_text(now)