summaryrefslogtreecommitdiff
path: root/src/ratpoison.h
diff options
context:
space:
mode:
authorsabetts <sabetts>2005-03-05 18:22:47 +0000
committersabetts <sabetts>2005-03-05 18:22:47 +0000
commit3df6eb689ece68c3ada07a4e266d2b695dbb23d7 (patch)
tree225f1a03c500b78687c6de328f7b0495b49d93ab /src/ratpoison.h
parent72cbc37bf8e9adc368b57e4b1dbf58cd8218eb0f (diff)
downloadratpoison-3df6eb689ece68c3ada07a4e266d2b695dbb23d7.zip
* src/ratpoison.h (check_child_procs): new prototype
(chld_handler): likewise (set_sig_handler): likewise * src/main.c (check_child_procs): new function (chld_handler): call check_child_procs (free_screen): unselect all events on the root window. * src/actions.c: include signal.h (spawn): don't prefix the command with exec. (set_wingravity): print the setting as a string. (set_transgravity): likewise (set_maxsizegravity): likewise (set_bargravity): likewise (set_font): likewise (set_winfmt): likewise (set_fgcolor): likewise (set_bgcolor): likewise (set_framesels): likewise (cmd_tmpwm): ungrab the keys for all windows before spawning the new wm. (cmd_tmpwm): disable the sigchld handler then enabled it after the wm returns. call check_child_procs.
Diffstat (limited to 'src/ratpoison.h')
-rw-r--r--src/ratpoison.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ratpoison.h b/src/ratpoison.h
index 1c84bb4..448e021 100644
--- a/src/ratpoison.h
+++ b/src/ratpoison.h
@@ -101,5 +101,9 @@ char *xstrdup (char *s);
char *xsprintf (char *fmt, ...);
char *xvsprintf (char *fmt, va_list ap);
int str_comp (char *s1, char *s2, int len);
+/* Needed in cmd_tmpwm */
+void check_child_procs ();
+void chld_handler (int signum);
+void set_sig_handler (int sig, void (*action)(int));
#endif /* ! _RATPOISON_H */