summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2004-06-03 21:18:59 +0000
committersabetts <sabetts>2004-06-03 21:18:59 +0000
commitc2ccd7137f1d77215abc34ceb9bdf0a30d3888a1 (patch)
tree6b4d730bf0bfec70051804a6c2228b0098e85854 /src/manage.c
parentc9b79a47d169f3358cfd9e644d38cd86658fb3de (diff)
downloadratpoison-c2ccd7137f1d77215abc34ceb9bdf0a30d3888a1.zip
* src/number.c (numset_add_num): add debugging output to print the args.
(numset_release): likewise (numset_request): add debugging output to print the requested number * src/manage.c (withdraw_window): Print an error when withdrawing a window who's number is -1. * src/main.c (clean_up): free the global frame numset. (free_screen): don't free the screen's numset, since it's a pointer to the global numset. * src/group.c (group_del_window): don't release the window number here. It's already been done in group_unmap_window. * src/events.c (configure_request): only change the stack mode for non withdrawn windows.
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/manage.c b/src/manage.c
index b11dc4a..c30b242 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -877,6 +877,9 @@ withdraw_window (rp_window *win)
/* Give back the window number. the window will get another one,
if it is remapped. */
+ if (win->number == -1)
+ PRINT_ERROR(("Attempting to withdraw '%s' with number -1!\n", window_name(win)));
+
numset_release (rp_window_numset, win->number);
win->number = -1;