aboutsummaryrefslogtreecommitdiff
path: root/swaybg
AgeCommit message (Collapse)Author
2018-10-15Sway clients: Exit gracefully when compositor is unavailableRyan Dwyer
2018-09-30Add support for installing binaries with DT_RPATHArkadiusz Hiler
It's better to use DT_RPATH dynamic section of the elf binary to store the paths of libraries to load instead of overwriting LD_LIBRARY_PATH for the whole environment, causing surprises. This solution is much more transparent and perfectly suitable for running contained installations of wayland/wlroots/sway. The code unsetting the LD_LIBRARY_PATH/LD_PRELOAD was also deleted as it's a placebo security at best - we should trust the execution path that leads us to running sway, and it's way too late to care about those variables since we already started executing our compositor, thus we would be compromised anyway.
2018-09-23swaybg: fix increasingly smaller bg on hotplugBrian Ashworth
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 swaybgBrian Ashworth
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 offminus
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#1126emersion
2018-05-07swaybg: remove assertions with side-effectsemersion
2018-05-06Revert "Install swaybar and swaybg under /usr/lib/sway"Rostislav Pehlivanov
This reverts commit f2c209c299889ad965ac995049704b1c46176c6d.
2018-05-06Revert "Make the LIBDIR path configurable"Rostislav Pehlivanov
This reverts commit 1670b46bf6e56d37e69ab0fa32c6799e83397020.
2018-05-06Revert "Meson: Replace option `instlibdir` with `libexecdir`"Rostislav Pehlivanov
This reverts commit 830c4ef74c00dbe448da46cdbc576178abc5728e.
2018-05-05Meson: Replace option `instlibdir` with `libexecdir`Nicolas Braud-Santoni
Derive a value from it, called `rundir` rather than writing join_paths(libexecdir, 'sway') all over the place.
2018-05-05Make the LIBDIR path configurableNicolas Braud-Santoni
2018-05-05Install swaybar and swaybg under /usr/lib/swayNicolas Braud-Santoni
2018-04-04Initial swaylock portDrew DeVault
2018-04-04Move swaybg background rendering into common/Drew DeVault
swaylock will use it too
2018-04-03Merge pull request #1710 from emersion/swaybg-empty-input-regionDrew DeVault
swaybg: set an empty input region
2018-04-03swaybg: rename w{width,height} to buffer_{width,height}emersion
2018-04-03swaybg: add HiDPI supportemersion
2018-04-03swaybg: set an empty input regionemersion
2018-03-30Set exclusive zone to -1 for swaybgDrew DeVault
2018-03-28Add initial layer shell skeletonDrew DeVault
2018-03-28Address review commentsDrew DeVault
2018-03-28Refactor configure/ack configure/commit flowDrew DeVault
2018-03-28s/scaling_mode/background_mode/gDrew DeVault
Since it now includes SOLID_COLOR this is a more appropriate name.
2018-03-28Implement image backgroundsDrew DeVault
2018-03-28Add solid-color rendering to swaybgDrew DeVault
2018-03-28Add client protocols and swaybg skeletonDrew DeVault
2017-12-01remove the rest of cmakeTony Crisci
2017-07-03swaybg: check that background can be loadedLinus Heckemann
2016-09-05Add client support for HiDPIDrew DeVault
This adds HiDPI support to swaybar, swaybg, and swaylock.
2016-07-30implement solid color rendering for swaybgZandr Martin
2016-07-17Turn swaybg into a shell surfaceDrew DeVault
2016-07-14Revert "swaybg: Make swaybg a shell surface"David Eklov
This reverts commit 99bda4afe27d9e5723ab6b0ebe5eabb0caaa8eeb. 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 surfaceDavid Eklov
2016-04-28Fix missing include pathsTomáš Čech
When headers were installed in more sofisticated places (but package config knows it right), it revealed missing paths in CMake configuration. Lets fix it.
2016-02-26Correctly exit sway on errors.Mikkel Oscar Lyderik
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.
2016-01-05Fix whitespace issues.Mikkel Oscar Lyderik
2015-12-20make gdk-pixbuf dependency really optionalprogandy
2015-12-10Copy+paste swaybg code to swaylock for testingDrew DeVault
2015-12-10Discover swaylock extension in registryDrew DeVault
2015-12-10Refactor gdk pixbuf code into shared client libDrew DeVault
2015-12-08Style enforcementDrew DeVault
2015-12-07swaybg: load more image formats with gdk-pixbuf2progandy
travis: added gdk-pixbuf2 dependency
2015-12-02cmake: build common code only onceChristoph Gysin
This creates (static) libraries for protocols/, common/, and wayland/.
2015-12-01cmake: remove subprojectsChristoph Gysin
2015-12-01cmake: remove unnecessary quotesChristoph Gysin
2015-12-01cmake: use out-of-source buildChristoph Gysin
2015-12-01cmake: use tabs instead of spacesChristoph Gysin
2015-12-01cmake: style consistencyChristoph Gysin
2015-12-01cmake: convert all cmake commands to lowercaseChristoph Gysin