summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-04-04 17:17:58 +0000
committersabetts <sabetts>2003-04-04 17:17:58 +0000
commitf42294c8d8d0d8899f256ae9f233d80f09179d33 (patch)
tree69749d5e84f71f9afbf77955ecbe6800d677cfe2 /src/manage.c
parent7eac68127c67d4c007b65548af5901f4e381d512 (diff)
downloadratpoison-f42294c8d8d0d8899f256ae9f233d80f09179d33.zip
* src/actions.c (cmd_setenv): properly parse the environment name
and value using strtok. * src/window.c (add_to_window_list): init the window's frame_number to EMPTY. * src/number.h (numset_clear): new prototype * src/manage.c (unmanage)[AUTO_CLOSE]: code update for new globals. * src/frame.c (frame_new): init f->last_access to 0. (frame_dump): dump the X11 window ID, not the window number. (frame_read): new function * src/events.c (destroy_window): just unmanage the window. * src/actions.h (cmd_fdump): new prototype (cmd_frestore): likewise * src/actions.c (user_commands): new commands "fdump" and "frestore". (cmd_fdump): new function (cmd_frestore): likewise * src/number.c (numset_clear): new function.
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manage.c b/src/manage.c
index 93fe869..28e6ab3 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -272,8 +272,8 @@ unmanage (rp_window *w)
free_window (w);
#ifdef AUTO_CLOSE
- if (rp_mapped_window_sentinel->next == rp_mapped_window_sentinel
- && rp_mapped_window_sentinel->prev == rp_mapped_window_sentinel)
+ if (rp_mapped_window->next == &rp_mapped_window
+ && rp_mapped_window->prev == &rp_mapped_window)
{
/* If the mapped window list is empty then we have run out of
managed windows, so kill ratpoison. */