diff options
Diffstat (limited to 'openbox/focus_cycle_indicator.c')
| -rw-r--r-- | openbox/focus_cycle_indicator.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/focus_cycle_indicator.c b/openbox/focus_cycle_indicator.c index 0af8ab12..203a85ff 100644 --- a/openbox/focus_cycle_indicator.c +++ b/openbox/focus_cycle_indicator.c @@ -119,13 +119,17 @@ void focus_cycle_indicator_shutdown(gboolean reconfig) void focus_cycle_draw_indicator(ObClient *c) { if (!c) { + gulong ignore_start; + + /* kill enter events cause by this unmapping */ + ignore_start = event_start_ignore_all_enters(); + XUnmapWindow(ob_display, focus_indicator.top.win); XUnmapWindow(ob_display, focus_indicator.left.win); XUnmapWindow(ob_display, focus_indicator.right.win); XUnmapWindow(ob_display, focus_indicator.bottom.win); - /* kill enter events cause by this unmapping */ - event_ignore_all_queued_enters(); + event_end_ignore_all_enters(ignore_start); } else { /* if (c) |
