mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
xsecurelock: keep scale in check
This commit is contained in:
parent
74ab3229df
commit
ba8d708a93
1 changed files with 2 additions and 0 deletions
|
@ -48,9 +48,11 @@ def on_win_draw(widget, cctx, ctx):
|
|||
bg = ctx.background.new_subpixbuf(
|
||||
x * scale, y * scale, wwidth * scale, wheight * scale
|
||||
)
|
||||
cctx.save()
|
||||
cctx.scale(1 / scale, 1 / scale)
|
||||
Gdk.cairo_set_source_pixbuf(cctx, bg, 0, 0)
|
||||
cctx.paint()
|
||||
cctx.restore()
|
||||
|
||||
|
||||
def on_overlay_draw(widget, cctx, ctx):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue