gears.color.create_opaque_pattern: Fix for SurfacePatterns (FS#1236)
Sorry! Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
8affa3bc02
commit
482efb8314
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue