From 23d60b065927989ab7482082516ad4c40ddd069d Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 17 Jan 2016 17:39:52 +0100 Subject: [PATCH] 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 --- lib/gears/wallpaper.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/gears/wallpaper.lua b/lib/gears/wallpaper.lua index 277ce2ed5..e09262a9d 100644 --- a/lib/gears/wallpaper.lua +++ b/lib/gears/wallpaper.lua @@ -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