aboutsummaryrefslogtreecommitdiff
path: root/common/background-image.c
AgeCommit message (Collapse)AuthorLines
2023-11-23common: move load_image to swaybarFurkan Sahin-136/+0
swaynag, swaymsg, and sway do not use this function and are unlikely to in the future.
2023-11-23common: rename load_background_image to load_imageFurkan Sahin-1/+1
2023-11-23common: Drop unused render_background_imageFurkan Sahin-86/+2
And the associated background_mode enum.
2021-05-07cairo: Replace <cairo/cairo.h> by <cairo.h>Furkan Sahin-1/+1
For full context, read https://gitlab.freedesktop.org/cairo/cairo/-/issues/479 TL;DR, cairo’s pc file adds `/cairo` to CFLAGS. So namespace cairo shouldn’t be used.
2019-04-25swaybg: split into standalone projectFurkan Sahin-0/+100
The new upstream is https://github.com/swaywm/swaybg This commit also refactors our use of gdk-pixbuf a bit, since the only remaining reverse dependency is swaybar tray support.
2019-01-22background-image.c: remove stdbool headerFurkan Sahin-2/+1
2019-01-20Replace wlr_log with sway_logFurkan Sahin-5/+5
This commit mostly duplicates the wlr_log functions, although with a sway_* prefix. (This is very similar to PR #2009.) However, the logging function no longer needs to be replaceable, so sway_log_init's second argument is used to set the exit callback for sway_abort. wlr_log_init is still invoked in sway/main.c This commit makes it easier to remove the wlroots dependency for the helper programs swaymsg, swaybg, swaybar, and swaynag.
2018-11-18Use #if instead of #ifdefFurkan Sahin-4/+4
2018-09-23swaybg: fix increasingly smaller bg on hotplugFurkan Sahin-0/+2
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-07-09Update for swaywm/wlroots#1126Furkan Sahin-4/+4
2018-04-03R E N D E R I N GFurkan Sahin-1/+2
2018-04-02Initial swaylock portFurkan Sahin-2/+20
2018-04-02Move swaybg background rendering into common/Furkan Sahin-0/+100
swaylock will use it too