awesome/lib/gears
Uli Schlachter f29eb2fee3 Fix wallpaper setting after RandR monitor changes
A co-worker of mine has a laptop with a small display and two larger displays.
When enabling the larger displays (and disabling the built-in display), the
wallpaper was set incorrectly. Only the size of the old, smaller screen actually
contained the wallpaper and the left was black.

The reason for this is that the code directly draws the new wallpaper to the
pixmap containing the old wallpaper. However, because the old display was
smaller, this pixmap isn't as large as the screen and so couldn't contain all of
the new wallpaper.

Fix this by explicitly creating a surface of the needed size and copying the old
wallpaper into it (because we might be setting only the wallpaper of some
screen, not all of them).

Special-thanks-to: vsp
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-04-28 17:31:39 +02:00
..
color.lua.in Make sure gears.color.create_png_pattern are being repeated 2014-04-08 22:58:16 +02:00
debug.lua.in Fix debug.dump 2012-08-31 15:23:56 +02:00
init.lua.in Fix warnings from LDoc 2012-11-19 15:35:32 +01:00
object.lua.in Lots of random documentation fixes 2012-11-19 14:09:10 +01:00
sort.lua.in Ported lib/gears to lua 5.2 2012-06-16 17:37:30 +02:00
surface.lua.in gears.surface: Handle the cache more intelligently 2014-04-09 21:57:30 +02:00
wallpaper.lua.in Fix wallpaper setting after RandR monitor changes 2016-04-28 17:31:39 +02:00