don't change the focus order when a client tries to focus but is not visible. client_activate will -make- it visible anyways.

fixes focus fallback's loop totally breaking (stopping on 32bit and looping forever on 64bit) when it encountered a non-visible window
This commit is contained in:
Dana Jansens 2007-06-04 20:31:33 +00:00
parent 0fb1d4d507
commit 62d9a34138

View file

@ -3519,10 +3519,6 @@ gboolean client_focus(ObClient *self)
self = client_focus_target(self); self = client_focus_target(self);
if (!client_can_focus(self)) { if (!client_can_focus(self)) {
if (!self->frame->visible) {
/* update the focus lists */
focus_order_to_top(self);
}
ob_debug_type(OB_DEBUG_FOCUS, ob_debug_type(OB_DEBUG_FOCUS,
"Client %s can't be focused\n", self->title); "Client %s can't be focused\n", self->title);
return FALSE; return FALSE;