diff --git a/openbox/client.c b/openbox/client.c index b8959a42..5408b18f 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -481,8 +481,8 @@ void client_manage(Window window) /* Don't steal focus from globally active clients. I stole this idea from KWin. It seems nice. */ - if (focus_client && focus_client->can_focus != TRUE && - focus_client->focus_notify == TRUE) + if (focus_client && !focus_client->can_focus && + focus_client->focus_notify) { activate = FALSE; }