diff --git a/objects/client.c b/objects/client.c index 6e1dd4d6f..c53156de3 100644 --- a/objects/client.c +++ b/objects/client.c @@ -181,11 +181,11 @@ client_getbyframewin(xcb_window_t w) return NULL; } -/** Record that a client lost focus. - * \param c Client being unfocused +/** Unfocus a client. + * \param c The client. */ static void -client_unfocus_update(client_t *c) +client_unfocus(client_t *c) { globalconf.focus.client = NULL; globalconf.focus.need_update = true; @@ -195,15 +195,6 @@ client_unfocus_update(client_t *c) lua_pop(globalconf.L, 1); } -/** Unfocus a client. - * \param c The client. - */ -static void -client_unfocus(client_t *c) -{ - client_unfocus_update(c); -} - /** Check if client supports atom a protocol in WM_PROTOCOL. * \param c The client. * \param atom The protocol atom to check for. @@ -291,7 +282,7 @@ client_focus_update(client_t *c) if(globalconf.focus.client) { if (globalconf.focus.client != c) - client_unfocus_update(globalconf.focus.client); + client_unfocus(globalconf.focus.client); else /* Already focused */ return;