summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/globals.c2
-rw-r--r--src/globals.h1
-rw-r--r--src/manage.c2
3 files changed, 5 insertions, 0 deletions
diff --git a/src/globals.c b/src/globals.c
index 9ebc8e3..eb94db6 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -231,6 +231,7 @@ LIST_HEAD (rp_switch_screen_hook);
LIST_HEAD (rp_quit_hook);
LIST_HEAD (rp_restart_hook);
LIST_HEAD (rp_delete_window_hook);
+LIST_HEAD (rp_new_window_hook);
struct rp_hook_db_entry rp_hook_db[]=
{{"key", &rp_key_hook},
@@ -241,6 +242,7 @@ struct rp_hook_db_entry rp_hook_db[]=
{"deletewindow", &rp_delete_window_hook},
{"quit", &rp_quit_hook},
{"restart", &rp_restart_hook},
+ {"newwindow", &rp_new_window_hook},
{NULL, NULL}};
void
diff --git a/src/globals.h b/src/globals.h
index 00af94d..aa73451 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -181,6 +181,7 @@ extern struct list_head rp_switch_screen_hook;
extern struct list_head rp_delete_window_hook;
extern struct list_head rp_quit_hook;
extern struct list_head rp_restart_hook;
+extern struct list_head rp_new_window_hook;
extern struct rp_hook_db_entry rp_hook_db[];
diff --git a/src/manage.c b/src/manage.c
index 8aaec31..f822c53 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -815,6 +815,8 @@ map_window (rp_window *win)
set_active_window (win);
else
show_rudeness_msg (win, 0);
+
+ hook_run (&rp_new_window_hook);
}
void