mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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
1 changed files with 0 additions and 5 deletions
|
@ -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 a new issue