From 4b049c310da4ff3833edd0f091a697f6f33309c0 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 22 Jun 2012 23:22:58 +0200 Subject: [PATCH] gears.surface: Update required lgi version Signed-off-by: Uli Schlachter --- lib/gears/surface.lua.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/gears/surface.lua.in b/lib/gears/surface.lua.in index eced69e9..7ed624db 100644 --- a/lib/gears/surface.lua.in +++ b/lib/gears/surface.lua.in @@ -9,8 +9,10 @@ local type = type local capi = { awesome = awesome } local cairo = require("lgi").cairo +-- This checks for '<= 0.5' because there are git versions after 0.6 which still +-- identify themselves as 0.6 but already have the needed cairo support 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") + error("lgi too old, need at least version 0.6.1") end -- gears.surface -- 2.11.4.GIT