From ac84e85590a5a32c9db3979a4c05475e10d97a79 Mon Sep 17 00:00:00 2001 From: sabetts Date: Sun, 15 Apr 2001 19:56:15 +0000 Subject: * src/messages.h (MESSAGE_WELCOME): new define * src/manage.c (scanwins): ignore the help window (hide_window): increment window's iconizing variable * src/main.c (main): display welcoming message (init_screen): create the help window (init_screen): don't map the frame indicator window (clean_up): destroy the help window * src/list.c (add_to_window_list): initialize iconizing to 0 * src/events.c (new_window): skip help_window (unmap_notify): skip normal processing if the event is from iconizing the window. (unmap_notify): clean up the window's frame if it is being withdrawn. * src/data.h (struct screen_info): new variable help_window * src/bar.c (update_window_names): only print the window list if the bar is already displaying the window list. * src/actions.h (cmd_help): new prototype (cmd_quit): likewise * src/actions.c (initialize_default_keybindings): new keybinding for "help" (cmd_quit): new function (cmd_help): likewise --- src/manage.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/manage.c') diff --git a/src/manage.c b/src/manage.c index e5bfa4d..638087b 100644 --- a/src/manage.c +++ b/src/manage.c @@ -234,6 +234,7 @@ scanwins(screen_info *s) || wins[i] == s->key_window || wins[i] == s->input_window || wins[i] == s->frame_window + || wins[i] == s->help_window || attr.override_redirect == True || unmanaged_window (wins[i])) continue; @@ -499,8 +500,9 @@ hide_window (rp_window *win) { if (win == NULL) return; - set_state (win, IconicState); XUnmapWindow (dpy, win->w); + set_state (win, IconicState); + win->iconizing++; } void -- cgit v1.2.3