From 3cba68b1ba37124ae3e74252eb1b7f9125a22b2f Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 7 Mar 2003 07:40:18 +0000 Subject: * src/split.h (find_frame_number): new prototype * src/split.c (create_initial_frame): give a number to the initial frame (split_frame): give the new frame a unique number (split_frame): add the new frame after the current frame (remove_all_splits): return the frame's number when deleting it. (remove_frame): likewise (find_frame_number): new function * src/main.c (init_screen): initialize the frames_numset member (free_screen): free the frames_numset member * src/data.h (struct screen_info): new member, frames_numset * src/actions.h (cmd_fselect): new prototype * src/actions.c (user_commands): new command "fselect" (cmd_fselect): new function --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 817b231..ce854b0 100644 --- a/src/main.c +++ b/src/main.c @@ -632,6 +632,9 @@ init_screen (screen_info *s, int screen_num) | SubstructureRedirectMask | SubstructureNotifyMask ); XSync (dpy, False); + /* Create the numset for the frames. */ + s->frames_numset = numset_new (); + /* Build the display string for each screen */ s->display_string = xmalloc (strlen(DisplayString (dpy)) + 21); sprintf (s->display_string, "DISPLAY=%s", DisplayString (dpy)); @@ -720,6 +723,8 @@ free_screen (screen_info *s) XFreeGC (dpy, s->normal_gc); free (s->display_string); + + numset_free (s->frames_numset); } void -- cgit v1.2.3