diff --git a/lib/gears/color.lua.in b/lib/gears/color.lua.in index 115babb42..47e325269 100644 --- a/lib/gears/color.lua.in +++ b/lib/gears/color.lua.in @@ -187,7 +187,8 @@ function color.create_pattern(col) if cairo.Pattern:is_type_of(col) then return col end - local result = col and pattern_cache[col] + local col = col or "#000000" + local result = pattern_cache[col] if result then return result end