summaryrefslogtreecommitdiff
path: root/src/events.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/events.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/events.c')
-rw-r--r--src/events.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/events.c b/src/events.c
index e73661f..5241977 100644
--- a/src/events.c
+++ b/src/events.c
@@ -168,25 +168,12 @@ map_request (XEvent *ev)
static void
destroy_window (XDestroyWindowEvent *ev)
{
- rp_window_frame *frame;
rp_window *win;
win = find_window (ev->window);
if (win == NULL) return;
ignore_badwindow++;
-
- /* A destroyed window should never have a frame, since it should
- have been cleaned up with an unmap notify event, but just in
- case... */
- frame = find_windows_frame (win);
- if (frame)
- {
- cleanup_frame (frame);
- if (frame->number == win->scr->current_frame)
- set_active_frame (frame);
- }
-
unmanage (win);
ignore_badwindow--;