better focus fallbacking n shit

This commit is contained in:
Dana Jansens 2003-09-27 06:42:34 +00:00
parent fbed66cc81
commit 26852af7a1

View file

@ -194,6 +194,8 @@ void focus_fallback(ObFocusFallbackType type)
trans = TRUE; trans = TRUE;
} }
g_message("trans %d", trans);
/* try for transient relations */ /* try for transient relations */
if (trans) { if (trans) {
if (old->transient_for == OB_TRAN_GROUP) { if (old->transient_for == OB_TRAN_GROUP) {
@ -291,7 +293,7 @@ static gboolean valid_focus_target(ObClient *ft)
focus an iconic window, but we want to be able to, so we just check focus an iconic window, but we want to be able to, so we just check
if the focus flags on the window allow it, and its on the current if the focus flags on the window allow it, and its on the current
desktop */ desktop */
return (ft == client_focus_target(ft) && client_normal(ft) && return (!ft->transients && client_normal(ft) &&
((ft->can_focus || ft->focus_notify) && ((ft->can_focus || ft->focus_notify) &&
!ft->skip_taskbar && !ft->skip_taskbar &&
(ft->desktop == screen_desktop || ft->desktop == DESKTOP_ALL))); (ft->desktop == screen_desktop || ft->desktop == DESKTOP_ALL)));