.. i am pretending to be mika :D :D ok this time for real

This commit is contained in:
Dana Jansens 2007-03-11 19:27:16 +00:00
parent d98a6183a3
commit d9601bc196

View file

@ -468,8 +468,7 @@ void client_manage(Window window)
/* If a nothing at all, or a parent was focused, then focus this /* If a nothing at all, or a parent was focused, then focus this
always always
*/ */
if (client_search_focus_parent(self) != NULL || if (!focus_client || client_search_focus_parent(self) != NULL)
!focus_client)
{ {
activate = TRUE; activate = TRUE;
} }
@ -481,8 +480,7 @@ void client_manage(Window window)
/* Don't steal focus from globally active clients. /* Don't steal focus from globally active clients.
I stole this idea from KWin. It seems nice. I stole this idea from KWin. It seems nice.
*/ */
if (focus_client && !focus_client->can_focus && if (!focus_client->can_focus && focus_client->focus_notify)
focus_client->focus_notify)
{ {
activate = FALSE; activate = FALSE;
} }