summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-05-20 07:20:14 +0000
committersabetts <sabetts>2003-05-20 07:20:14 +0000
commit671419ebfb5a6fa0937fd410b0b419f39cf7b25d (patch)
tree4c58fc662167d071ab6da1640a05886d082ebca9 /src/window.c
parentb8ffe22a70e1285740341e4dc83d003aad86a133 (diff)
downloadratpoison-671419ebfb5a6fa0937fd410b0b419f39cf7b25d.zip
* 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.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c9
1 files changed, 9 insertions, 0 deletions
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;