summaryrefslogtreecommitdiff
path: root/src/window.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/window.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/window.c')
-rw-r--r--src/window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 692e53e..37eec0c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -119,7 +119,8 @@ add_to_window_list (screen_info *s, Window w)
new_window->scr = s;
new_window->last_access = 0;
new_window->state = WithdrawnState;
- new_window->number = -1;
+ new_window->number = -1;
+ new_window->frame_number = EMPTY;
new_window->named = 0;
new_window->hints = XAllocSizeHints ();
new_window->colormap = DefaultColormap (dpy, s->screen_num);