summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2012-09-30 23:42:16 -0400
committerDana Jansens <danakj@orodu.net>2012-10-06 22:30:02 -0400
commit56a0993300e6b4939b2c4eae1cf4d444732cd043 (patch)
treef78153a843cf2754807c881324e574da71513757 /openbox
parent2391410e3fd7767e266c0efe84fd34244ea29dc6 (diff)
When a window is the focus target and it is removed from the focus order, reset the focus cycling (Fix bug 5410)
We were only doing this if a dialog was showing. But if it's the target, then a dialog is not relevant, we should always recompute the focus cycling. This avoids a crash when not using a dialog and closing a window during cycling.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/focus_cycle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/focus_cycle.c b/openbox/focus_cycle.c
index 6d4cc2a5..93a9a993 100644
--- a/openbox/focus_cycle.c
+++ b/openbox/focus_cycle.c
@@ -74,7 +74,7 @@ void focus_cycle_addremove(ObClient *c, gboolean redraw)
gboolean v, s;
v = focus_cycle_valid(c);
- s = focus_cycle_popup_is_showing(c);
+ s = focus_cycle_popup_is_showing(c) || c == focus_cycle_target;
if (v != s)
focus_cycle_reorder();