summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-02-19 09:56:37 +0000
committersabetts <sabetts>2001-02-19 09:56:37 +0000
commitfe1b95fa672387232732507a65565bac8c470c26 (patch)
treefea1ebe54c235ec19eacebed1b7867bc17e086a2 /src/actions.c
parent4f193c1f4d81f0f583d4db7a00c3cb54967b2058 (diff)
downloadratpoison-fe1b95fa672387232732507a65565bac8c470c26.zip
* manage.c (manage): calls sort_window_list_by_number
* list.h (sort_window_list_by_number): Added prototype * list.c (swap_list_elements): Added (sort_window_list_by_number): Added * input.c (update_input_window): Added (get_input): calls update_input_window in place of xlib calls. (get_input): exits if realloc fails * conf.h: Added INPUT_WINDOW_SIZE * bar.c (update_window_names): loops through window list from head to tail.
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c
index b7f00ff..1240c3a 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -557,10 +557,11 @@ void
goto_window_number (void *data)
{
int n = (int)data;
-
rp_window *win;
- if ((win = find_window_by_number (n)) == NULL)
+ win = find_window_by_number (n);
+
+ if (win == NULL)
{
/* Display window list to indicate failure. */
/* FIXME: We can always assume there is 1 screen, but which one
@@ -569,6 +570,11 @@ goto_window_number (void *data)
return;
}
+ if (win == rp_current_window)
+ {
+ /* TODO: Add message "This IS window # (xxx) */
+ }
+
set_active_window (win);
}