client_unfocus_update: Merge into client_unfocus
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
3dbf89c990
commit
8b16d1ee4b
|
@ -181,11 +181,11 @@ client_getbyframewin(xcb_window_t w)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Record that a client lost focus.
|
/** Unfocus a client.
|
||||||
* \param c Client being unfocused
|
* \param c The client.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
client_unfocus_update(client_t *c)
|
client_unfocus(client_t *c)
|
||||||
{
|
{
|
||||||
globalconf.focus.client = NULL;
|
globalconf.focus.client = NULL;
|
||||||
globalconf.focus.need_update = true;
|
globalconf.focus.need_update = true;
|
||||||
|
@ -195,15 +195,6 @@ client_unfocus_update(client_t *c)
|
||||||
lua_pop(globalconf.L, 1);
|
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.
|
/** Check if client supports atom a protocol in WM_PROTOCOL.
|
||||||
* \param c The client.
|
* \param c The client.
|
||||||
* \param atom The protocol atom to check for.
|
* \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)
|
||||||
{
|
{
|
||||||
if (globalconf.focus.client != c)
|
if (globalconf.focus.client != c)
|
||||||
client_unfocus_update(globalconf.focus.client);
|
client_unfocus(globalconf.focus.client);
|
||||||
else
|
else
|
||||||
/* Already focused */
|
/* Already focused */
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue