summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-03-07 07:40:18 +0000
committersabetts <sabetts>2003-03-07 07:40:18 +0000
commit3cba68b1ba37124ae3e74252eb1b7f9125a22b2f (patch)
tree95e673ff771fb30391d3351c93714cdf6c656c5b /src/main.c
parente401dac992736a1a0ba3ee20146c9fec37a80df7 (diff)
downloadratpoison-3cba68b1ba37124ae3e74252eb1b7f9125a22b2f.zip
* 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
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
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