summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/list.c b/src/list.c
index 12d51c8..87ad967 100644
--- a/src/list.c
+++ b/src/list.c
@@ -29,6 +29,8 @@
LIST_HEAD(rp_unmapped_window);
LIST_HEAD(rp_mapped_window);
+struct numset *rp_window_numset;
+
/* Get the mouse position relative to the root of the specified window */
static void
get_mouse_root_position (rp_window *win, int *mouse_x, int *mouse_y)
@@ -669,3 +671,15 @@ get_window_list (char *fmt, char *delim, struct sbuf *buffer,
sbuf_copy (buffer, MESSAGE_NO_MANAGED_WINDOWS);
}
}
+
+void
+init_window_stuff ()
+{
+ rp_window_numset = numset_new ();
+}
+
+void
+free_window_stuff ()
+{
+ numset_free (rp_window_numset);
+}