Make client.focus = nil work (Closes #164)
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
4636b111b4
commit
df173f7ddd
|
@ -2326,8 +2326,11 @@ luaA_client_module_newindex(lua_State *L)
|
||||||
|
|
||||||
if (A_STREQ(buf, "focus"))
|
if (A_STREQ(buf, "focus"))
|
||||||
{
|
{
|
||||||
c = luaA_checkudata(L, 3, &client_class);
|
c = luaA_checkudataornil(L, 3, &client_class);
|
||||||
client_focus(c);
|
if (c)
|
||||||
|
client_focus(c);
|
||||||
|
else if (globalconf.focus.client)
|
||||||
|
client_unfocus(globalconf.focus.client);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue