diff --git a/lib/gears/surface.lua.in b/lib/gears/surface.lua.in index 774f2836..eced69e9 100644 --- a/lib/gears/surface.lua.in +++ b/lib/gears/surface.lua.in @@ -9,7 +9,7 @@ local type = type local capi = { awesome = awesome } local cairo = require("lgi").cairo -if tonumber(require("lgi.version")) <= 0.5 then +if tonumber(string.match(require('lgi.version'), '(%d%.%d)')) <= 0.5 then error("lgi too old, need at least version 0.7 (not yet released?) or recent git") end