client.c for the Openbox window manager
Copyright (c) 2006 Mikael Magnusson
- Copyright (c) 2003 Ben Jansens
+ Copyright (c) 2003-2007 Dana Jansens
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
/* If a nothing at all, or a parent was focused, then focus this
always
*/
- if (client_search_focus_parent(self) != NULL ||
- !focus_client)
- {
+ if (!focus_client || client_search_focus_parent(self) != NULL)
activate = TRUE;
- }
else
{
/* If time stamp is old, don't steal focus */
/* 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->can_focus && focus_client->focus_notify)
activate = FALSE;
- }
}
if (activate)
own = calc_layer(self);
self->layer = MAX(own, min);
- ob_debug("layer for %s: %d\n", self->title, self->layer);
-
for (it = self->transients; it; it = g_slist_next(it))
client_calc_layer_recursive(it->data, orig,
self->layer,