Unban clients when they are focused

In commit 3dbf89c I removed a client_unban() in the code path for focusing
clients. The idea was that client focusing is now done after rebanning, so that
it should already be visible by the time this code is executed.

However, minimized clients obviously don't get unbanned, So we have to call
client_unban() here to make sure the client is unminimized.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2011-01-09 10:40:42 +01:00
parent d16ca829aa
commit 6494540b0c
1 changed files with 2 additions and 0 deletions

View File

@ -326,6 +326,8 @@ client_focus_refresh(void)
if(c)
{
/* Make sure this window is unbanned and e.g. not minimized */
client_unban(c);
/* Sets focus on window - using xcb_set_input_focus or WM_TAKE_FOCUS */
if(!c->nofocus)
xcb_set_input_focus(globalconf.connection, XCB_INPUT_FOCUS_PARENT,