diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2010-01-16 19:32:44 +0100 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-01-28 08:40:00 -0500 |
| commit | d00a0060f01ac4bca68184ecbba9822e70abea45 (patch) | |
| tree | 53b118f8d54f7bf8cedfc95a62197fedd435ebab /openbox | |
| parent | 03b4c872054fd93f1337ee78c19338968de1fd6c (diff) | |
Don't alt-tab to skip_taskbar iconic windows if they have parents
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/focus.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 25abdd5b..0b1d5bc5 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -350,11 +350,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)); |
