diff options
author | sabetts <sabetts> | 2003-05-16 23:25:06 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-05-16 23:25:06 +0000 |
commit | cf843449115562fe44be792e37bd78639414da4e (patch) | |
tree | 0eba8dbd41b3ad9328b600ca35b4d41e34aaec60 /src/globals.c | |
parent | bcf85f95069519c29b2263ff5391a4da0442188e (diff) | |
download | ratpoison-cf843449115562fe44be792e37bd78639414da4e.zip |
* src/window.c (add_to_window_list): add the window to the current
group.
(find_window_name): search the current group for a matching
window.
(find_window_other): likewise.
(format_window_name): take a rp_window_elem as an argument, not an
rp_window. Print the group window's number, not the window's
internal number.
(get_window_list): loop through the current group.
* src/split.c (find_window_for_frame): search the current group
for a window to fit in the frame.
* src/ratpoison.h: include globals.h and group.h
* src/manage.c (unmanage): remove the window from any groups it
was in.
(map_window): map the window in any groups it is in.
(withdraw_window): unmap the window in any groups it is in.
* src/main.c: Move all globals to globals.h
(main): initialize the group functions.
* src/data.h: Move all defines and extern globals to globals.h
(struct rp_window_elem): new struct
(struct rp_group): likewise
* src/actions.h (cmd_gnext): new prototype
(cmd_gprev): likewise
(cmd_gnew): likewise
* src/actions.c (user_commands): new commands gnext, gprev, and gnew
(cmd_prev): fix to work with new group code.
(cmd_next): likewise
(cmd_gnext): new function
(cmd_gprev): likewise
(cmd_gnew): likewise
* src/Makefile.am (ratpoison_SOURCES): add files globals.h,
globals.c, group.h and group.c
Diffstat (limited to 'src/globals.c')
-rw-r--r-- | src/globals.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/globals.c b/src/globals.c new file mode 100644 index 0000000..d9478bd --- /dev/null +++ b/src/globals.c @@ -0,0 +1,47 @@ +#include "ratpoison.h" + +int alarm_signalled = 0; +int kill_signalled = 0; +int hup_signalled = 0; +int chld_signalled = 0; +int rat_x; +int rat_y; +int rat_visible = 1; /* rat is visible by default */ + +Atom wm_name; +Atom wm_state; +Atom wm_change_state; +Atom wm_protocols; +Atom wm_delete; +Atom wm_take_focus; +Atom wm_colormaps; + +Atom rp_command; +Atom rp_command_request; +Atom rp_command_result; + +int rp_current_screen; +rp_screen *screens; +int num_screens; +Display *dpy; + +rp_group *rp_current_group; +LIST_HEAD (rp_groups); +LIST_HEAD (rp_children); +struct rp_defaults defaults; + +int ignore_badwindow = 0; + +char **myargv; + +struct rp_key prefix_key; + +struct modifier_info rp_modifier_info; + +/* rudeness levels */ +int rp_honour_transient_raise = 1; +int rp_honour_normal_raise = 1; +int rp_honour_transient_map = 1; +int rp_honour_normal_map = 1; + +char *rp_error_msg = NULL; |