diff options
author | sabetts <sabetts> | 2003-07-17 05:41:41 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-07-17 05:41:41 +0000 |
commit | b7d55a9ae282d35b3a42267749f8f443620728d7 (patch) | |
tree | b919f3c6dee8331981ab696fe7923c507bafd888 /src/globals.h | |
parent | 19a5e7a0eb033abbd4d61b72a2023a8d012c9a5e (diff) | |
download | ratpoison-b7d55a9ae282d35b3a42267749f8f443620728d7.zip |
* src/window.c (set_active_window): run the switch window hook.
* src/split.c (set_active_frame): run the switch frame hook.
* src/ratpoison.h: include hook.h
* src/group.h (set_current_group): new prototype
* src/group.c (set_current_group): new function
* src/globals.h (rp_prefix_hook): new extern
(rp_switch_win_hook): likewise
(rp_switch_frame_hook): likewise
(rp_switch_group_hook): likewise
(rp_hook_db): likewise
* src/globals.c (rp_prefix_hook): new hook
(rp_switch_win_hook): likewise
(rp_switch_frame_hook): likewise
(rp_switch_group_hook): likewise
(rp_hook_db): new global
* src/events.c (handle_key): call the prefix hook.
* src/data.h (struct rp_hook_db_entry): new struct
* src/actions.h (cmd_addhook): new prototype
(cmd_remhook): likewise
* src/actions.c (user_commands): add commands addhook and remhook.
(cmd_windows): show the window bar no matter what if the bar
timeout is > 0.
(cmd_gnext): call set_current_group
(cmd_gprev): likewise
(cmd_gnew): likewise
(cmd_gselect): likewise
(cmd_addhook): new function
(cmd_remhook): likewise
* src/Makefile.am (ratpoison_SOURCES): add hook.c and hook.h
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index cca5f27..7c25741 100644 --- a/src/globals.h +++ b/src/globals.h @@ -125,5 +125,11 @@ extern char *rp_error_msg; /* Number sets for windows. */ extern struct numset *rp_window_numset; +extern struct list_head rp_prefix_hook; +extern struct list_head rp_switch_win_hook; +extern struct list_head rp_switch_frame_hook; +extern struct list_head rp_switch_group_hook; + +extern struct rp_hook_db_entry rp_hook_db[]; #endif |