diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-05-09 22:53:11 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-05-09 22:53:11 +0000 |
| commit | d5eacc5642ad8f5611f7c946d734863bc8898513 (patch) | |
| tree | 38ba2c64fa2ce6ba82a1c4649b8ae83ff58b10bb /openbox/focus.c | |
| parent | 380ddd2b9cd2ffd8d286855b0670e58a553b2b3d (diff) | |
add a client_activate function, use it for net_wm_active mesgs and for focus cycling.
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 4fa123cb..2ee2cf2f 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -268,14 +268,8 @@ Client *focus_cycle(gboolean forward, gboolean linear, gboolean done, frame_adjust_focus(focus_client->frame, TRUE); goto done_cycle; } else if (done) { - if (focus_cycle_target) { - if (focus_cycle_target->iconic) - client_iconify(focus_cycle_target, FALSE, FALSE); - if (focus_cycle_target->shaded) - client_shade(focus_cycle_target, FALSE); - client_focus(focus_cycle_target); - stacking_raise(focus_cycle_target); - } + if (focus_cycle_target) + client_activate(focus_cycle_target); goto done_cycle; } if (!first) first = focus_client; |
