From 6530c0a9d651ce281e013a7df466fe82771456f0 Mon Sep 17 00:00:00 2001 From: James Whitehead II Date: Wed, 1 Dec 2010 16:41:48 +0000 Subject: [PATCH] Fix a bug that was causing some bindings to fail --- Clique.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Clique.lua b/Clique.lua index fe50399..ec43d54 100755 --- a/Clique.lua +++ b/Clique.lua @@ -314,10 +314,17 @@ local function ApplicationOrder(a, b) end local function shouldApply(global, entry) + -- If this is the global button and this is a 'global' binding if global and (entry.sets.hovercast or entry.sets.global) then return true - elseif not global and (not entry.sets.hovercast and not entry.sets.global) then - return true + elseif not global then + -- Check to see if there's a non-global binding to be set + for k, v in pairs(entry.sets) do + if k ~= "global" and k ~= "hovercast" then + return true + end + end + return false end end -- 1.7.9.5