diff --git a/lib/gears/color.lua.in b/lib/gears/color.lua.in index 8c14b8c1..d3c30135 100644 --- a/lib/gears/color.lua.in +++ b/lib/gears/color.lua.in @@ -219,7 +219,8 @@ function color.create_opaque_pattern(col) end return pattern elseif type == "SURFACE" then - if pattern:get_surface():get_content() ~= "COLOR" then + local status, surface = pattern:get_surface() + if status ~= "SUCCESS" or surface.content ~= "COLOR" then -- The surface has an alpha channel which *might* be non-opaque return end