summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-12-15 09:58:36 +0000
committersabetts <sabetts>2000-12-15 09:58:36 +0000
commit622689a118c1262afbf0c153c4241bb1611d645a (patch)
tree681851ea357c02fdff6458f9ce31627bd59b9dc0 /src/list.c
parenta4b8bf2d64b490e0b42ed0d50cba90c4ab07f47a (diff)
downloadratpoison-622689a118c1262afbf0c153c4241bb1611d645a.zip
(add_to_window_list): Added init code for `hints'
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c3
1 files changed, 3 insertions, 0 deletions
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");
}