dont set focus_client to NULL when sending focus to nothing, let that happen from the FocusOut events
This commit is contained in:
parent
82432ae4d0
commit
65a176330a
1 changed files with 6 additions and 0 deletions
|
@ -302,7 +302,13 @@ void focus_nothing()
|
|||
screen_install_colormap(NULL, TRUE);
|
||||
}
|
||||
|
||||
/* Don't set focus_client to NULL here. It will be set to NULL when the
|
||||
FocusOut event comes. Otherwise, if we focus nothing and then focus the
|
||||
same window again, The focus code says nothing changed, but focus_client
|
||||
ends up being NULL anyways.
|
||||
focus_client = NULL;
|
||||
*/
|
||||
|
||||
focus_tried = NULL; /* focus isn't "trying" to go anywhere now */
|
||||
|
||||
/* if there is a grab going on, then we need to cancel it. if we move
|
||||
|
|
Loading…
Reference in a new issue