diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-21 17:03:17 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-21 17:03:17 +0000 |
| commit | 5f5160b40c89c28a7e86dc66c08d1788bb6b0f1d (patch) | |
| tree | 2e7a7284f2c1312ae15ee4d29509bfb0b8b0fcce | |
| parent | 9960ef2ff99a8d39b35518e178a624b19f758525 (diff) | |
dont drop out of dirfocus when there is no new target to be found
| -rw-r--r-- | openbox/focus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 36ccbea3..523c7b5d 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -398,11 +398,14 @@ void focus_directional_cycle(ObDirection dir, focus_cycle_target = ft; frame_adjust_focus(focus_cycle_target->frame, TRUE); } - popup_cycle(ft, dialog); + } + if (focus_cycle_target) { + popup_cycle(focus_cycle_target, dialog); if (dialog) return; } + done_cycle: if (done && focus_cycle_target) client_activate(focus_cycle_target, FALSE); |
