swayfx/common
Brian Ashworth 9ea99a5d36 swaybg: fix increasingly smaller bg on hotplug
render_background_image alters the scale that cairo uses. Depending on
the image mode, resolution, and image size, this may cause the surface
to be rendered increasingly smaller. By calling cairo_save and
cairo_restore, any changes to the cairo settings by the function are
not kept as a side effect.

The surface that swaybg uses is also now cleared before rendering a frame.
This is needed to avoid artifacts on resolution or scale changes with
certain combinations of image modes, resolutions, and image sizes. This
was also part of the increasingly smaller background visual since it
made it so it was not obvious the region being rendered to was smaller
and caused an increasing number of smaller images to be appear for each
hotplug.
2018-09-23 15:17:36 -04:00
..
background-image.c swaybg: fix increasingly smaller bg on hotplug 2018-09-23 15:17:36 -04:00
cairo.c swaybar, swaylock, & tree/container: Set cairo font options to render text and lines with subpixel hinting (if available). 2018-09-22 11:34:21 -07:00
ipc-client.c prevent ub caused by misaligned stores/loads 2018-09-02 17:07:12 -07:00
list.c Use list_find in more places and refactor/fix workspace prev_next functions 2018-08-15 15:14:35 +10:00
log.c Update for swaywm/wlroots#1126 2018-07-09 22:54:30 +01:00
meson.build Add password buffer, refactor rendering/surfaces 2018-04-04 18:47:48 -04:00
pango.c Call pango_cairo_context_set_font_options(). 2018-09-22 15:33:03 -07:00
readline.c swaybar: rewrite protocol determination 2018-09-18 11:36:33 +01:00
stringop.c Allow reload command to exist anywhere in the command string 2018-09-01 11:45:48 +10:00
unicode.c utf8_size: fix loop boundary 2018-07-02 08:03:41 +09:00
util.c Remove layout.c 2018-08-26 12:05:16 +10:00