aboutsummaryrefslogtreecommitdiff
path: root/swaybg/main.c
AgeCommit message (Collapse)AuthorLines
2019-04-25swaybg: split into standalone projectFurkan Sahin-542/+0
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-04-03swaybg: one instance for all outputsFurkan Sahin-127/+325
This makes it so there will only be one swaybg instance running instead of one per output. swaybg's cli has been changed to a xrandr like interface, where you select an output and then change properties for that output and then select another output and repeat. This also makes it so swaybg is only killed and respawned when a background changes or when reloading.
2019-01-20Replace wlr_log with sway_logFurkan Sahin-7/+7
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.
2019-01-17swaybg: use wl_surface_damage_bufferFurkan Sahin-2/+2
2019-01-17swaybg: use output names instead of output indexesFurkan Sahin-33/+108
2018-10-15Sway clients: Exit gracefully when compositor is unavailableFurkan Sahin-1/+6
2018-09-23swaybg: fix increasingly smaller bg on hotplugFurkan Sahin-0/+4
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-08-08Allow a fallback color to be specified for swaybgFurkan Sahin-1/+12
This allows for a color to be set when the wallpaper does not fill the entire output. If specified, the fallback color is also used when the image path is inaccessible.
2018-07-14swaybar/bg: Fix crash on DPMS offFurkan Sahin-0/+3
When turning off displays via DPMS, swaybar and swaybg still tried to render, but did not get a valid buffer, causing them to crash.
2018-07-09Update for swaywm/wlroots#1126Furkan Sahin-3/+3
2018-05-07swaybg: remove assertions with side-effectsFurkan Sahin-5/+8
2018-04-02Initial swaylock portFurkan Sahin-20/+8
2018-04-02Move swaybg background rendering into common/Furkan Sahin-107/+6
swaylock will use it too
2018-04-03Merge pull request #1710 from emersion/swaybg-empty-input-regionFurkan Sahin-0/+5
swaybg: set an empty input region
2018-04-03swaybg: rename w{width,height} to buffer_{width,height}Furkan Sahin-15/+16
2018-04-03swaybg: add HiDPI supportFurkan Sahin-6/+42
2018-04-03swaybg: set an empty input regionFurkan Sahin-0/+5
2018-03-30Set exclusive zone to -1 for swaybgFurkan Sahin-0/+1
2018-03-28Address review commentsFurkan Sahin-31/+13
2018-03-27Refactor configure/ack configure/commit flowFurkan Sahin-10/+5
2018-03-27s/scaling_mode/background_mode/gFurkan Sahin-24/+24
Since it now includes SOLID_COLOR this is a more appropriate name.
2018-03-27Implement image backgroundsFurkan Sahin-2/+112
2018-03-27Add solid-color rendering to swaybgFurkan Sahin-0/+187
2018-03-27Add client protocols and swaybg skeletonFurkan Sahin-182/+7
2017-07-03swaybg: check that background can be loadedFurkan Sahin-0/+8
2016-09-05Add client support for HiDPIFurkan Sahin-15/+19
This adds HiDPI support to swaybar, swaybg, and swaylock.
2016-07-30implement solid color rendering for swaybgFurkan Sahin-95/+121
2016-07-17Turn swaybg into a shell surfaceFurkan Sahin-0/+1
2016-07-10Revert "swaybg: Make swaybg a shell surface"Furkan Sahin-1/+0
This reverts commit 642fdaab48327b5f526bc31b2c165c4343f2b824. It turned out that code to handle swaybg as shell surface was broken so we don't want to make swaybg a shell surface until this has been fixed.
2016-07-04swaybg: Make swaybg a shell surfaceFurkan Sahin-0/+1
2016-02-26Correctly exit sway on errors.Furkan Sahin-2/+2
Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running.
2015-12-20make gdk-pixbuf dependency really optionalFurkan Sahin-0/+4
2015-12-10Copy+paste swaybg code to swaylock for testingFurkan Sahin-2/+2
2015-12-10Discover swaylock extension in registryFurkan Sahin-1/+0
2015-12-10Refactor gdk pixbuf code into shared client libFurkan Sahin-107/+2
2015-12-08Style enforcementFurkan Sahin-1/+1
2015-12-07swaybg: load more image formats with gdk-pixbuf2Furkan Sahin-1/+118
travis: added gdk-pixbuf2 dependency
2015-11-29Add swaybar basicsFurkan Sahin-3/+1
This should make the bar open and appear as the panel, once sway supports panels. Right now it crashes sway!
2015-11-28Use macros for exit valuesFurkan Sahin-1/+1
2015-11-28Rearrange logging headersFurkan Sahin-0/+1
Ref #270
2015-11-27Style fixes in swaybgFurkan Sahin-39/+39
CONTRIBUTING.md's code example is sourced from this file, so I updated it as well.
2015-11-27Fix build warningsFurkan Sahin-1/+1
2015-11-27Style enforcementFurkan Sahin-59/+58
2015-11-27Don't use the _t postfix on non-typedef structuresFurkan Sahin-2/+2
2015-11-25swaybg: implement scaling mode "fit"Furkan Sahin-0/+23
2015-11-25swaybg: implement scaling mode "tile"Furkan Sahin-0/+10
2015-11-25swaybg: implement scaling mode "center"Furkan Sahin-0/+8
2015-11-25swaybg: implement scaling mode "fill"Furkan Sahin-0/+23
2015-11-25swaybg: implement scaling mode "stretch"Furkan Sahin-3/+24
2015-11-25swaybg: check for exact number of argumentsFurkan Sahin-1/+1