Skip to content

Commit

Permalink
Fix launchbar icon issue on Wayland
Browse files Browse the repository at this point in the history
Icons did not render correctly on Wayland when supplying path to the
icon.

Fixes #4552
  • Loading branch information
elParaguayo committed Nov 28, 2023
1 parent 217aa01 commit 9ccaf6f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions libqtile/widget/launchbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,20 +272,13 @@ def draw(self):
)
else:
# display an icon
self.drawer.ctx.save()
# Translate to vertically centre the icon
self.drawer.ctx.translate(0, self._icon_padding + self.padding_y)
self.drawer.ctx.set_source(self.surfaces[name])
self.drawer.ctx.paint()
self.drawer.ctx.restore()

self.drawer.ctx.restore()

self.drawer.draw(
offsetx=self.offset + xoffset,
offsety=self.offsety,
width=icon_width + self.padding,
)

xoffset += icon_width + self.padding

self.drawer.draw(offsetx=self.offset, offsety=self.offsety, width=self.width)
Expand Down

0 comments on commit 9ccaf6f

Please sign in to comment.