From 53e1ff2c79b3b9f3bcece9281531ab6afdb844e6 Mon Sep 17 00:00:00 2001 From: sabetts Date: Tue, 17 Oct 2000 09:30:43 +0000 Subject: fixed bug that lost focus of any window when the current window was unmapped. moved key strokes into a structure in actions.c along with all key stroke functi ons. added ability to ignore badwindow errors. fixed up unmap_notify function. w hen waiting for a keystroke after the prefix has been hit, pressing a modifier d oesn't count as a 'keystroke' and doesn't abort the current key combination bein g keyed --- src/manage.c | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'src/manage.c') diff --git a/src/manage.c b/src/manage.c index 592200a..9027b80 100644 --- a/src/manage.c +++ b/src/manage.c @@ -101,29 +101,6 @@ update_window_name (rp_window *win) return 1; } -void -rename_current_window () -{ - char winname[100]; - - if (rp_current_window == NULL) return; - - get_input (rp_current_window->scr, "Name: ", winname, 100); - PRINT_DEBUG ("user entered: %s\n", winname); - - free (rp_current_window->name); - rp_current_window->name = malloc (sizeof (char) * strlen (winname) + 1); - if (rp_current_window->name == NULL) - { - PRINT_ERROR ("Out of memory\n"); - exit (EXIT_FAILURE); - } - strcpy (rp_current_window->name, winname); - rp_current_window->named = 1; - - /* Update the program bar. */ - update_window_names (rp_current_window->scr); -} void manage (rp_window *win, screen_info *s) @@ -170,7 +147,8 @@ scanwins(screen_info *s) if (attr.override_redirect != True) { win = add_to_window_list (s, wins[i]); - if (attr.map_state != IsUnmapped) manage (win, s); + PRINT_DEBUG ("map_state: %d\n", attr.map_state); + if (attr.map_state == IsViewable) manage (win, s); } } XFree((void *) wins); /* cast is to shut stoopid compiler up */ -- cgit v1.2.3