diff options
author | sabetts <sabetts> | 2003-05-20 07:20:14 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-05-20 07:20:14 +0000 |
commit | 671419ebfb5a6fa0937fd410b0b419f39cf7b25d (patch) | |
tree | 4c58fc662167d071ab6da1640a05886d082ebca9 /src/group.c | |
parent | b8ffe22a70e1285740341e4dc83d003aad86a133 (diff) | |
download | ratpoison-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/group.c')
-rw-r--r-- | src/group.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/group.c b/src/group.c index 6b268f0..b09e2e3 100644 --- a/src/group.c +++ b/src/group.c @@ -23,7 +23,7 @@ group_new (int number) g = xmalloc (sizeof (rp_group)); - g->number = numset_request (group_numset); + g->number = number; g->numset = numset_new(); INIT_LIST_HEAD (&g->unmapped_windows); INIT_LIST_HEAD (&g->mapped_windows); @@ -172,6 +172,16 @@ group_del_window (rp_group *g, rp_window *win) free (cur); } } + + /* Make sure the window isn't in the list of mapped windows. This + would mean there is a bug. */ +#ifdef DEBUG + list_for_each_entry (cur, &g->mapped_windows, node) + { + if (cur->win == win) + PRINT_DEBUG (("This window wasn't removed from the mapped window list.\n")); + } +#endif } /* Remove the window from any groups in resides in. */ |