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:
parent
de6d9334d8
commit
23d60b0659
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue