summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-10-17 09:30:43 +0000
committersabetts <sabetts>2000-10-17 09:30:43 +0000
commit53e1ff2c79b3b9f3bcece9281531ab6afdb844e6 (patch)
treed6f78af9bb46e9ad40242e3a943bb21886e93264 /src/list.c
parent17b9be354e5b1f2b5db4d3e044435698a17b2be6 (diff)
downloadratpoison-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/list.c')
-rw-r--r--src/list.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/src/list.c b/src/list.c
index 0393923..c4737ce 100644
--- a/src/list.c
+++ b/src/list.c
@@ -112,36 +112,6 @@ init_window_list ()
rp_current_window = NULL;
}
-void
-next_window ()
-{
- if (rp_current_window != NULL)
- {
- rp_current_window = rp_current_window->next;
- if (rp_current_window == NULL)
- {
- rp_current_window = rp_window_head;
- }
- if (rp_current_window->state == STATE_UNMAPPED) next_window ();
- set_active_window (rp_current_window);
- }
-}
-
-void
-prev_window ()
-{
- if (rp_current_window != NULL)
- {
- set_current_window (rp_current_window->prev);
- if (rp_current_window == NULL)
- {
- rp_current_window = rp_window_tail;
- }
- if (rp_current_window->state == STATE_UNMAPPED) prev_window ();
- set_active_window (rp_current_window);
- }
-}
-
rp_window *
find_window_by_number (int n)
{
@@ -196,20 +166,6 @@ goto_window_name (char *name)
set_active_window (rp_current_window);
}
-void
-goto_window_number (int n)
-{
- rp_window *win;
-
- if ((win = find_window_by_number (n)) == NULL)
- {
- return;
- }
-
- rp_current_window = win;
- set_active_window (rp_current_window);
-}
-
rp_window *
find_last_accessed_window ()
{
@@ -240,13 +196,6 @@ find_last_accessed_window ()
}
void
-last_window ()
-{
- rp_current_window = find_last_accessed_window ();
- set_active_window (rp_current_window);
-}
-
-void
set_active_window (rp_window *rp_w)
{
static int counter = 1; /* increments every time this function