From 65a47e5685546d2810293f249d2fdd589239926f Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 23 Feb 2001 10:12:14 +0000 Subject: * main.c (main): passes return value of find_window_other() to set_active_window(). * list.h (remove_from_window_list): removed prototype (find_window_in_list): new prototype (append_to_list): likewise (insert_into_list): likewise (remove_from_list): likewise * list.c: propogated use of rp_unmapped_window_sentinel and rp_mapped_window_sentinel. (find_window_in_list): new function (find_window): calls find_window_in_list to search mapped and unmapped window lists. (remove_from_window_list): removed function (init_window_list): initialized sentinels (find_window_prev): searches only the mapped window list. (find_window_next): likewise (find_window_other): likewise (append_to_list): new function (insert_into_list): new function (remove_from_list): new function * events.c (unmap_notify): Searches only the mapped window list. moves the window from the unmapped window list to the mapped window list. * data.h: removed rp_window_head and rp_window_tail, updated dependant files. Added rp_mapped_window_sentinel and rp_unmapped_window_sentinel globals. * bar.c (update_window_names): loops only through mapped window list. --- src/list.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/list.h') diff --git a/src/list.h b/src/list.h index 672b520..c713129 100644 --- a/src/list.h +++ b/src/list.h @@ -24,10 +24,10 @@ rp_window *add_to_window_list (screen_info *s, Window w); void init_window_list (); -void remove_from_window_list (rp_window *w); /* void next_window (); */ /* void prev_window (); */ void last_window (); +rp_window *find_window_in_list (Window w, rp_window *sentinel); rp_window *find_window (Window w); void maximize_current_window (); void set_active_window (rp_window *rp_w); @@ -41,4 +41,8 @@ rp_window* find_window_next (rp_window *w); rp_window* find_window_number (int n); void sort_window_list_by_number (); +void append_to_list (rp_window *win, rp_window *sentinel); +void insert_into_list (rp_window *win, rp_window *sentinel); +void remove_from_list (rp_window *win); + #endif /* ! _RATPOISON_LIST_H */ -- cgit v1.2.3