From 671419ebfb5a6fa0937fd410b0b419f39cf7b25d Mon Sep 17 00:00:00 2001 From: sabetts Date: Tue, 20 May 2003 07:20:14 +0000 Subject: * src/linkedlist.h: Move all C function to linkedlist.c * src/window.c (find_window): add debugging output describing which window list the window was found in. * src/group.c (group_new): assign the group's number the number passed as an argument. * src/events.c (destroy_window): withdraw iconified and normal windows before unmanaging them. (handle_signals): delete the node from the list before freeing it. * src/bar.h (message): remove define. (marked_wrapped_message): remove prototype (message): new prototype * src/bar.c (message): new function (marked_wrapped_message): renamed to marked_message. remove marked_message. --- src/window.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/window.c') diff --git a/src/window.c b/src/window.c index ec7b088..88403cf 100644 --- a/src/window.c +++ b/src/window.c @@ -167,11 +167,20 @@ find_window (Window w) { rp_window *win = NULL; + win = find_window_in_list (w, &rp_mapped_window); if (!win) { win = find_window_in_list (w, &rp_unmapped_window); + if (win) + PRINT_DEBUG (("Window found in unmapped window list\n")); + else + PRINT_DEBUG (("Window not found.\n")); + } + else + { + PRINT_DEBUG (("Window found in mapped window list.\n")); } return win; -- cgit v1.2.3