From 293fca91a75f15c696c2f1d9dd4227f558cfc26f Mon Sep 17 00:00:00 2001 From: sabetts Date: Thu, 27 Feb 2003 12:33:00 +0000 Subject: * src/main.c (free_screen): new function (clean_up): call free_screen on each screen. free the screen array. free defaults.window_fmt. * src/number.h (free_numbers): new prototype * src/number.c (free_numbers): new function * src/manage.c (get_wmname): use XGetWindowProperty to get the window name. (unmanaged_window): free wname after using it. * src/main.c (wm_name): new global (main): internalize WM_NAME atom. (clean_up): free data structures for keybindings, aliases, the bar, window numbers, and input history. * src/input.h (free_history): new prototype * src/input.c (free_history): new function * src/events.c (execute_remote_command): free properties returned by XGetWindowProperty(). * src/data.h (wm_name): new extern * src/communications.c (recieve_command_result): free properties returned by XGetWindowProperty(). * src/bar.h (free_bar): new prototype * src/bar.c (update_window_names): bar_buffer is not static. (update_window_names): free bar_buffer after using it. (marked_message): free the GC after using it. (free_bar): new function. * src/actions.h (free_keybindings): new prototype (free_aliases): likewise * src/actions.c (free_keybindings): new function (free_aliases): likewise (cmd_tmpwm): unmap the key window before calling the new wm, and remap it afterwards. --- src/actions.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/actions.h') diff --git a/src/actions.h b/src/actions.h index e383f74..643bec5 100644 --- a/src/actions.h +++ b/src/actions.h @@ -118,6 +118,8 @@ char *cmd_warp(int interactive, void *data); char *cmd_tmpwm (int interactive, void *data); void initialize_default_keybindings (void); +void free_keybindings (); +void free_aliases (); rp_action* find_keybinding (KeySym keysym, int state); rp_action* find_keybinding_by_action (char *action); -- cgit v1.2.3