From 7aa14dfc36056acd4c0260df0fd13111c24e6553 Mon Sep 17 00:00:00 2001 From: Bart Trojanowski Date: Tue, 23 Dec 2008 17:09:05 -0500 Subject: [PATCH] ignore client change events when there is no client --- core/wmii.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wmii.lua b/core/wmii.lua index 1e6a18a..d08ab1a 100644 --- a/core/wmii.lua +++ b/core/wmii.lua @@ -2146,7 +2146,7 @@ end function client_focused (xid) log ("-client_focused " .. tostring(xid)) -- return the current focused xid if nil is passed - if not xid then + if type(xid) ~= 'string' or not xid:match("0x[0-9][a-f][A-F]*$") then return focused_xid end -- do nothing if the same xid -- 2.11.4.GIT