gears.wallpaper: Remove some dead code

gears.surface now returns a fallback image surface that is good enough for what
this code tries to do here.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-01-17 17:39:52 +01:00
parent de6d9334d8
commit 23d60b0659
1 changed files with 0 additions and 5 deletions

View File

@ -46,11 +46,6 @@ function wallpaper.prepare_context(s)
-- Prepare a pending wallpaper
local wp = surface(root.wallpaper())
if not wp then
-- No wallpaper yet
wp = cairo.ImageSurface(cairo.Format.RGB24, 0, 0)
end
pending_wallpaper = wp:create_similar(cairo.Content.COLOR, root_geom.width, root_geom.height)
-- Copy the old wallpaper to the new one