mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
client: remove prev_client_focus
Not sure it's good however. Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e55ed50b89
commit
fe43b99a2a
2 changed files with 0 additions and 13 deletions
|
@ -80,8 +80,6 @@ typedef struct
|
||||||
int keygrabber;
|
int keygrabber;
|
||||||
/** The mouse pointer grabber function */
|
/** The mouse pointer grabber function */
|
||||||
int mousegrabber;
|
int mousegrabber;
|
||||||
/** Previously focused client */
|
|
||||||
client_t *prev_client_focus;
|
|
||||||
/** Focused client */
|
/** Focused client */
|
||||||
client_t *client_focus;
|
client_t *client_focus;
|
||||||
/** Drawins */
|
/** Drawins */
|
||||||
|
|
|
@ -231,9 +231,6 @@ client_hasproto(client_t *c, xcb_atom_t atom)
|
||||||
*/
|
*/
|
||||||
void client_ban_unfocus(client_t *c)
|
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. */
|
/* Wait until the last moment to take away the focus from the window. */
|
||||||
if(globalconf.client_focus == c)
|
if(globalconf.client_focus == c)
|
||||||
client_unfocus(c);
|
client_unfocus(c);
|
||||||
|
@ -297,11 +294,7 @@ void
|
||||||
client_focus_update(client_t *c)
|
client_focus_update(client_t *c)
|
||||||
{
|
{
|
||||||
if(!client_maybevisible(c, c->screen))
|
if(!client_maybevisible(c, c->screen))
|
||||||
{
|
|
||||||
/* Focus previously focused client */
|
|
||||||
client_focus(globalconf.prev_client_focus);
|
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
|
|
||||||
if(globalconf.client_focus)
|
if(globalconf.client_focus)
|
||||||
{
|
{
|
||||||
|
@ -312,7 +305,6 @@ client_focus_update(client_t *c)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
globalconf.prev_client_focus = c;
|
|
||||||
globalconf.client_focus = c;
|
globalconf.client_focus = c;
|
||||||
|
|
||||||
/* according to EWMH, we have to remove the urgent state from a client */
|
/* 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;
|
tc->transient_for = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(globalconf.prev_client_focus == c)
|
|
||||||
globalconf.prev_client_focus = NULL;
|
|
||||||
|
|
||||||
if(globalconf.client_focus == c)
|
if(globalconf.client_focus == c)
|
||||||
client_unfocus(c);
|
client_unfocus(c);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue