diff options
author | sabetts <sabetts> | 2000-10-17 09:30:43 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2000-10-17 09:30:43 +0000 |
commit | 53e1ff2c79b3b9f3bcece9281531ab6afdb844e6 (patch) | |
tree | d6f78af9bb46e9ad40242e3a943bb21886e93264 /src/manage.c | |
parent | 17b9be354e5b1f2b5db4d3e044435698a17b2be6 (diff) | |
download | ratpoison-53e1ff2c79b3b9f3bcece9281531ab6afdb844e6.zip |
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
Diffstat (limited to 'src/manage.c')
-rw-r--r-- | src/manage.c | 26 |
1 files changed, 2 insertions, 24 deletions
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 */ |