awesome/lib/gears
Uli Schlachter 112ce3b419 Set the wallpaper more intelligently
Usually users want a wallpaper on all their screens. With the current code, this
resulted in a loop of upload-wallpaper, {download-wallpaper, add-new-part,
upload-wallpaper}*.

Fix this by being more intelligent: Instead of setting the wallpaper
immediately, this now uses gears.timer.delayed_call() to set the wallpaper. All
following modifications which come in before the delayed call runs will still be
part of the current update. This should mean that during startup, there is just
a single upload of a wallpaper.

(The above is what happens if there is no wallpaper yet. If there is already
one, we use :create_similar() and thus should only upload the part of the
wallpaper that changed, but this doesn't really make a difference.)

As a side-effect, the new code no longer draws to the old wallpaper to modify
it, but always creates a copy of it. This means that:

Fixes https://github.com/awesomeWM/awesome/issues/288.
Closes https://github.com/awesomeWM/awesome/pull/530.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-10-26 23:06:32 +01:00
..
cache.lua doc: fix unintentional rendering as code due to indent 2015-10-14 00:22:26 +02:00
color.lua doc: fix unintentional rendering as code due to indent 2015-10-14 00:22:26 +02:00
debug.lua Remove gears.debug.assert 2015-09-16 15:01:26 +02:00
init.lua Add gears.matrix for working with cairo matrices 2015-08-12 10:38:22 +02:00
matrix.lua Merge pull request #454 from psychon/remove_gears.debug.assert 2015-09-21 21:16:36 +02:00
object.lua wibox.widget.base: add __tostring method to widgets 2015-07-26 18:17:01 +02:00
sort.lua Remove the *.in from all files. 2015-06-19 22:33:32 +02:00
surface.lua doc(lib: gears: surface): more verbose docstring 2015-09-07 20:29:57 +02:00
timer.lua doc: fix unintentional rendering as code due to indent 2015-10-14 00:22:26 +02:00
wallpaper.lua Set the wallpaper more intelligently 2015-10-26 23:06:32 +01:00