summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--src/globals.c2
-rw-r--r--src/globals.h1
-rw-r--r--src/manage.c3
4 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 606739b..96ca2ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
+2005-12-11 Shawn Betts <sabetts@shitbender.gagrod>
+
+ * src/manage.c (withdraw_window): call rp_delete_window_hook hook
+
+ * src/globals.c: new hook rp_delete_window_hook
+
2005-11-05 Shawn Betts <sabetts@shitbender.gagrod>
+ * src/events.c (handle_signals): xsync after hiding all windows
+
* src/manage.h (unhide_all_windows): new prototype
* src/manage.c (unhide_all_windows): new function.
diff --git a/src/globals.c b/src/globals.c
index 2a954fd..b7306a6 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -223,12 +223,14 @@ LIST_HEAD (rp_switch_frame_hook);
LIST_HEAD (rp_switch_group_hook);
LIST_HEAD (rp_quit_hook);
LIST_HEAD (rp_restart_hook);
+LIST_HEAD (rp_delete_window_hook);
struct rp_hook_db_entry rp_hook_db[]=
{{"key", &rp_key_hook},
{"switchwin", &rp_switch_win_hook},
{"switchframe", &rp_switch_frame_hook},
{"switchgroup", &rp_switch_group_hook},
+ {"deletewindow", &rp_delete_window_hook},
{"quit", &rp_quit_hook},
{"restart", &rp_restart_hook},
{NULL, NULL}};
diff --git a/src/globals.h b/src/globals.h
index e8c9c38..080d31d 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -147,6 +147,7 @@ extern struct list_head rp_key_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 list_head rp_delete_window_hook;
extern struct list_head rp_quit_hook;
extern struct list_head rp_restart_hook;
diff --git a/src/manage.c b/src/manage.c
index 9076b16..36bb973 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -904,6 +904,9 @@ withdraw_window (rp_window *win)
XSync (dpy, False);
ignore_badwindow--;
+
+ /* Call our hook */
+ hook_run (&rp_delete_window_hook);
}
/* Hide all other mapped windows except for win in win's frame. */