summaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 3af78f3..6faf26e 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -106,3 +106,21 @@ frame_move_down (rp_window_frame *frame, int amount)
{
frame->y += amount;
}
+
+rp_window_frame *
+frame_new (screen_info *s)
+{
+ rp_window_frame *f;
+
+ f = xmalloc (sizeof (rp_window_frame));
+ f->number = numset_request (s->frames_numset);
+
+ return f;
+}
+
+void
+frame_free (screen_info *s, rp_window_frame *f)
+{
+ numset_release (s->frames_numset, f->number);
+ free (f);
+}