summaryrefslogtreecommitdiff
path: root/src/data.h
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/data.h
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/data.h')
-rw-r--r--src/data.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/data.h b/src/data.h
index 2164b5a..e87d63e 100644
--- a/src/data.h
+++ b/src/data.h
@@ -23,6 +23,7 @@
#define _RATPOISON_DATA_H
#include "linkedlist.h"
+#include "number.h"
#include <X11/X.h>
#include <X11/Xlib.h>
@@ -109,6 +110,9 @@ struct screen_info
always be one in the list. */
struct list_head rp_window_frames;
+ /* Keep track of which numbers have been given to frames. */
+ struct numset *frames_numset;
+
/* Pointer to the currently focused frame. One for each screen so
when you switch screens the focus doesn't get frobbed. */
rp_window_frame *rp_current_frame;