diff options
author | portix <portix@gmx.net> | 2014-03-07 14:00:42 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2014-03-07 14:00:42 +0100 |
commit | 62d0985cadc6824d9d7c3f58757fb2ad6017bfa5 (patch) | |
tree | 9039a976c1cec54e4403be846804a282449d1c90 | |
parent | 0d3a6a6a21a1a10929ca4cd439591410260e3675 (diff) | |
download | dwb-62d0985cadc6824d9d7c3f58757fb2ad6017bfa5.zip |
Adding ipc-hook quit
-rw-r--r-- | doc/dwbremote.1.txt | 2 | ||||
-rw-r--r-- | src/ipc.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/dwbremote.1.txt b/doc/dwbremote.1.txt index 5d8f7856..c44839b9 100644 --- a/doc/dwbremote.1.txt +++ b/doc/dwbremote.1.txt @@ -191,6 +191,8 @@ COMMANDS Emitted when new tab is created, return format: 'new_tab <n>' *n*:::: Number of the new tab + *quit*;; + Emitted when dwb is closed. The response will be empty *prompt* 'promptmessage':: Shows a prompt dialog. @@ -81,6 +81,7 @@ get_hooks(char **list, int count) HOOK_MAP(change_mode), HOOK_MAP(download_finished), HOOK_MAP(document_finished), + HOOK_MAP(quit), { 0, 0 } }; #undef HOOK_MAP @@ -416,6 +417,7 @@ ipc_send_hook(char *name, const char *format, ...) void ipc_send_end_win(void) { if (s_win != 0 && s_dirty) { + IPC_SEND_HOOK(quit, ""); dwbremote_set_int_property(s_dpy, s_win, s_atoms[DWB_ATOM_STATUS], 0); dwbremote_wait(s_dpy, s_win, s_atoms[DWB_ATOM_STATUS]); } |