diff --git a/openbox/keyboard.c b/openbox/keyboard.c index bf8d63ae..18ca37f7 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -329,7 +329,8 @@ void keyboard_shutdown(gboolean reconfig) if (!reconfig) client_remove_destructor(keyboard_interactive_end_client); - keyboard_interactive_end(0, TRUE, 0, TRUE); + if (istate.active) + keyboard_interactive_end(0, TRUE, 0, TRUE); ob_main_loop_timeout_remove(ob_main_loop, chain_timeout);