client: remove prev_client_focus

Not sure it's good however.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-10-13 17:28:40 +02:00 committed by Uli Schlachter
parent e55ed50b89
commit fe43b99a2a
2 changed files with 0 additions and 13 deletions

View file

@ -80,8 +80,6 @@ typedef struct
int keygrabber;
/** The mouse pointer grabber function */
int mousegrabber;
/** Previously focused client */
client_t *prev_client_focus;
/** Focused client */
client_t *client_focus;
/** Drawins */

View file

@ -231,9 +231,6 @@ client_hasproto(client_t *c, xcb_atom_t atom)
*/
void client_ban_unfocus(client_t *c)
{
if(globalconf.prev_client_focus == c)
globalconf.prev_client_focus = NULL;
/* Wait until the last moment to take away the focus from the window. */
if(globalconf.client_focus == c)
client_unfocus(c);
@ -297,11 +294,7 @@ void
client_focus_update(client_t *c)
{
if(!client_maybevisible(c, c->screen))
{
/* Focus previously focused client */
client_focus(globalconf.prev_client_focus);
return;
}
if(globalconf.client_focus)
{
@ -312,7 +305,6 @@ client_focus_update(client_t *c)
return;
}
globalconf.prev_client_focus = c;
globalconf.client_focus = c;
/* according to EWMH, we have to remove the urgent state from a client */
@ -952,9 +944,6 @@ client_unmanage(client_t *c, bool window_valid)
tc->transient_for = NULL;
}
if(globalconf.prev_client_focus == c)
globalconf.prev_client_focus = NULL;
if(globalconf.client_focus == c)
client_unfocus(c);