awesome/lib
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
..
awful Add awful.util.is_dir 2015-10-26 23:06:08 +01:00
beautiful doc: fix unintentional rendering as code due to indent 2015-10-14 00:22:26 +02:00
gears Set the wallpaper more intelligently 2015-10-26 23:06:32 +01:00
menubar menubar/icon_theme.lua: Handle scalable icons correctly 2015-10-13 22:20:43 +02:00
naughty doc: fix unintentional rendering as code due to indent 2015-10-14 00:22:26 +02:00
wibox Add some constructor arguments to some layouts 2015-10-17 14:50:46 +02:00