]> Dogcows Code - chaz/openbox/blobdiff - openbox/keyboard.c
add a reconfigure action, also reconfigure on SIGUSR2.
[chaz/openbox] / openbox / keyboard.c
index f73fe2986575325cadc08e823fbdb2d0b1aa08c3..f8109456894def5c092f472a4388c7230bb6ae75 100644 (file)
@@ -264,15 +264,25 @@ void keyboard_event(ObClient *client, const XEvent *e)
     }
 }
 
-void keyboard_startup()
+void keyboard_startup(gboolean reconfig)
 {
     grab_keys(TRUE);
 }
 
-void keyboard_shutdown()
+void keyboard_shutdown(gboolean reconfig)
 {
+    GSList *it;
+
     tree_destroy(keyboard_firstnode);
     keyboard_firstnode = NULL;
+
+    for (it = interactive_states; it; it = g_slist_next(it))
+        g_free(it->data);
+    g_slist_free(interactive_states);
+    interactive_states = NULL;
+
+    ob_main_loop_timeout_remove(ob_main_loop, chain_timeout);
     grab_keys(FALSE);
+    curpos = NULL;
 }
 
This page took 0.021987 seconds and 4 git commands to generate.