diff options
author | sabetts <sabetts> | 2003-04-06 00:53:32 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-04-06 00:53:32 +0000 |
commit | 7dad9dd35ea39dbe3faa727cc0c0d074a5ea1abe (patch) | |
tree | 1267064b648379f58939484267b2c63f6c78c9da /src/data.h | |
parent | 934c250042e1e5b9f51d0c8b401437057febfbe3 (diff) | |
download | ratpoison-7dad9dd35ea39dbe3faa727cc0c0d074a5ea1abe.zip |
* src/window.c (get_window_list): if window_list_style is STYLE_COLUMN then
the end of the mark is the length of the buffer minus the start of
the mark.
* src/main.c (init_defaults): init window_list_style to STYLE_ROW.
* src/data.h (struct rp_defaults): new member, window_list_style.
* src/bar.c (bar_y): new argument, height. All callers updated.
(bar_y): use height in calculations.
(update_window_names): print a column of windows if
defaults.window_list_style is in column mode.
(count_lines): new function
(max_line_length): likewise
(pos_in_line): likewise
(line_beginning): likewise
(marked_wrapped_message): likewise
* src/actions.c (user_commands): new commands 'verbexec' and
'defwinliststyle'. Move @end take to after the def* commands.
(cmd_verbexec): new function. Added prototype.
(cmd_defwinliststyle): likewise
Diffstat (limited to 'src/data.h')
-rw-r--r-- | src/data.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -37,6 +37,8 @@ window/frame/screen/etc, Use EMPTY to denote a lack there of. */ #define EMPTY -1 +#define STYLE_ROW 0 +#define STYLE_COLUMN 1 typedef struct rp_window rp_window; typedef struct screen_info screen_info; @@ -175,8 +177,9 @@ struct rp_defaults int startup_message; - /* A toggle for wrapping the window list. */ - int wrap_window_list; + /* Decides whether the window list is displayed in a row or a + column. */ + int window_list_style; /* Pointer warping toggle. */ int warp; |