mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-28 20:40:15 +02:00
xss-dimmer: recent versions of Gdk seems to handle HiDPI differently
Or maybe that's GTK changing the way it reports position?
This commit is contained in:
parent
b531e4405a
commit
b0fd8f4a04
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ def on_draw(widget, event, options, background, start):
|
|||
scale = widget.get_scale_factor()
|
||||
bg = None
|
||||
if background:
|
||||
bg = background.new_subpixbuf(x, y, wwidth * scale, wheight * scale)
|
||||
bg = background.new_subpixbuf(
|
||||
x * scale, y * scale, wwidth * scale, wheight * scale
|
||||
)
|
||||
cctx.set_operator(cairo.OPERATOR_SOURCE)
|
||||
if not bg:
|
||||
cctx.set_source_rgba(0, 0, 0, opacity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue