From 0c56ffbfe3801249ac1e4456f9eb48e8a6794cbe Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sat, 16 Jan 2010 19:32:44 +0100 Subject: [PATCH] Don't alt-tab to skip_taskbar iconic windows if they have parents --- openbox/focus.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openbox/focus.c b/openbox/focus.c index c8a5589..07e74af 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -347,11 +347,13 @@ gboolean focus_valid_target(ObClient *ft, /* it's not set to skip the taskbar (but this is overridden if the window is modal or if the user asked for this window to be focused, - or if the window is iconified, and it is not used for windows which are + or if the window is iconified (and does not have any parents with + which to uniconify it), and it is not used for windows which are hilited, or dialog windows as these need user interaction and should not be long-lasting windows */ ok = ok && (!ft->skip_taskbar || - (ft->modal || ft->iconic || user_request || + (ft->modal || user_request || + (ft->iconic && !ft->parents) || ft->demands_attention || ft->type == OB_CLIENT_TYPE_DIALOG)); -- 1.9.1