diff options
author | sabetts <sabetts> | 2000-12-15 09:58:36 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2000-12-15 09:58:36 +0000 |
commit | 622689a118c1262afbf0c153c4241bb1611d645a (patch) | |
tree | 681851ea357c02fdff6458f9ce31627bd59b9dc0 | |
parent | a4b8bf2d64b490e0b42ed0d50cba90c4ab07f47a (diff) | |
download | ratpoison-622689a118c1262afbf0c153c4241bb1611d645a.zip |
(add_to_window_list): Added init code for `hints'
-rw-r--r-- | src/list.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -27,6 +27,7 @@ rp_window *rp_window_head, *rp_window_tail; rp_window *rp_current_window; +/* Allocate a new window and add it to the list of managed windows */ rp_window * add_to_window_list (screen_info *s, Window w) { @@ -45,6 +46,7 @@ add_to_window_list (screen_info *s, Window w) new_window->state = STATE_UNMAPPED; new_window->number = -1; new_window->named = 0; + new_window->hints = XAllocSizeHints (); if ((new_window->name = malloc (strlen ("Unnamed") + 1)) == NULL) { @@ -95,6 +97,7 @@ remove_from_window_list (rp_window *w) left. */ if (rp_current_window == w) rp_current_window = NULL; + XFree (w->hints); free (w); PRINT_DEBUG ("Removed window from list.\n"); } |