diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-26 21:22:28 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-26 21:22:28 +0000 |
| commit | aa7c36d1bc78529feafb65c2fd6e251a86043d81 (patch) | |
| tree | 844ad79cd46160e41871965f0480745a5ee7c278 /openbox/focus.c | |
| parent | 11c4ce4903f9ac31bae3b68209f47cb1a058afb4 (diff) | |
only kill focus cycling when the window being destroyed was in the list of targets
Diffstat (limited to 'openbox/focus.c')
| -rw-r--r-- | openbox/focus.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openbox/focus.c b/openbox/focus.c index 73099a4b..6713d98d 100644 --- a/openbox/focus.c +++ b/openbox/focus.c @@ -75,7 +75,8 @@ void focus_set_client(ObClient *client) screen_install_colormap(client, TRUE); /* in the middle of cycling..? kill it. */ - focus_cycle_stop(); + focus_cycle_stop(focus_client); + focus_cycle_stop(client); focus_client = client; @@ -208,7 +209,7 @@ void focus_order_add_new(ObClient *c) } /* in the middle of cycling..? kill it. */ - focus_cycle_stop(); + focus_cycle_stop(c); } void focus_order_remove(ObClient *c) @@ -216,7 +217,7 @@ void focus_order_remove(ObClient *c) focus_order = g_list_remove(focus_order, c); /* in the middle of cycling..? kill it. */ - focus_cycle_stop(); + focus_cycle_stop(c); } void focus_order_to_top(ObClient *c) |
