X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.c;h=d13df1dd7fe2231b1d78c808d933b84dcb1714f6;hb=ac3a588266c1353721a776a1676b416e6258d7f6;hp=84bd7b09a02f4de7941046ec1eef0090e489f9d0;hpb=4ae6be577de367a62b7986b9f23c14fed38dcc85;p=chaz%2Fopenbox diff --git a/openbox/focus.c b/openbox/focus.c index 84bd7b09..d13df1dd 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -194,6 +194,8 @@ void focus_fallback(ObFocusFallbackType type) trans = TRUE; } + g_message("trans %d", trans); + /* try for transient relations */ if (trans) { 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 if the focus flags on the window allow it, and its on the current desktop */ - return (ft == client_focus_target(ft) && client_normal(ft) && + return (!ft->transients && client_normal(ft) && ((ft->can_focus || ft->focus_notify) && !ft->skip_taskbar && (ft->desktop == screen_desktop || ft->desktop == DESKTOP_ALL)));