diff options
author | sabetts <sabetts> | 2005-01-15 17:03:34 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2005-01-15 17:03:34 +0000 |
commit | 47c3a7c2bed43e9c73c87be8283af1bd4f216e82 (patch) | |
tree | 8dffd1bccaae1a2d0c68bffdd1bc5f26738dc5e1 /src/globals.h | |
parent | d6d45c517d608b15e08b1669f1d82b3db558d697 (diff) | |
download | ratpoison-47c3a7c2bed43e9c73c87be8283af1bd4f216e82.zip |
* src/globals.h (rp_exec_newwm): new extern.
* src/globals.c (rp_exec_newwm): new global.
* src/actions.c (cmd_newwm): set rp_exec_newwm to the new wm.
* src/events.c (listen_for_events): call XSync after
delegate_event.
(handle_signals): exec newwm if its not NULL. Report X11 errors
(moved from listen_for_events).
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 a1665fb..f6d43a8 100644 --- a/src/globals.h +++ b/src/globals.h @@ -121,6 +121,12 @@ extern int kill_signalled; extern int hup_signalled; extern int chld_signalled; +/* When set to a string, ratpoison should exec the command. The reason + this variable is needed and why it is not exec'd in cmd_newwm is + because if called with ratpoison -c, the rp -c process never + returns. */ +extern char *rp_exec_newwm; + /* rudeness levels */ extern int rp_honour_transient_raise; extern int rp_honour_normal_raise; |