From fe1b95fa672387232732507a65565bac8c470c26 Mon Sep 17 00:00:00 2001 From: sabetts Date: Mon, 19 Feb 2001 09:56:37 +0000 Subject: * 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. --- src/actions.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/actions.c') 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); } -- cgit v1.2.3