From 622689a118c1262afbf0c153c4241bb1611d645a Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 15 Dec 2000 09:58:36 +0000 Subject: (add_to_window_list): Added init code for `hints' --- src/list.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/list.c b/src/list.c index 8cdb38a..ad6ee5b 100644 --- a/src/list.c +++ b/src/list.c @@ -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"); } -- cgit v1.2.3