summaryrefslogtreecommitdiff
path: root/src/manage.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/manage.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/manage.c')
-rw-r--r--src/manage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/manage.c b/src/manage.c
index cda4dde..6d15e05 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -196,6 +196,8 @@ manage (rp_window *win, screen_info *s)
win->state = STATE_MAPPED;
win->number = get_unique_window_number ();
+ sort_window_list_by_number();
+
PRINT_DEBUG ("window '%s' managed.\n", win->name);
}