From 01db39f5bbe106fddcb117e6fcb03e91ba057ac3 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 22 Aug 2016 17:27:31 -0400 Subject: [PATCH] screen: Use math.huge instead of 9999 --- lib/awful/screen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/awful/screen.lua b/lib/awful/screen.lua index b75e46662..4029895b6 100644 --- a/lib/awful/screen.lua +++ b/lib/awful/screen.lua @@ -412,7 +412,7 @@ function screen.object.get_tags(s, unordered) -- Avoid infinite loop, + save some time if not unordered then table.sort(tags, function(a, b) - return (a.index or 9999) < (b.index or 9999) + return (a.index or math.huge) < (b.index or math.huge) end) end