diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-15 22:13:16 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-15 22:13:16 -0500 |
| commit | e6d33facc8f02a068f62b4f60c2872589b620dab (patch) | |
| tree | 5801c12a8f8c36dfb204ffcabf2e55c79cb8294b /openbox/client.h | |
| parent | 07994cb2dcafe33db99da5f7234caefdc0baa809 (diff) | |
when you close an app and it stops responding.. if you hit close again, it will try kill -TERM. if that fails and you close again, it will kill -9 ! (assuming the app is running on the local host and provided its PID)
Diffstat (limited to 'openbox/client.h')
| -rw-r--r-- | openbox/client.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openbox/client.h b/openbox/client.h index 672b3822..f568b008 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -30,6 +30,10 @@ #include <glib.h> #include <X11/Xlib.h> +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> /* for pid_t */ +#endif + struct _ObFrame; struct _ObGroup; struct _ObSessionState; @@ -115,6 +119,8 @@ struct _ObClient gchar *client_machine; /*! The command used to run the program. Pre-XSMP window identification. */ gchar *wm_command; + /*! The PID of the process which owns the window */ + pid_t pid; /*! The application that created the window */ gchar *name; @@ -225,6 +231,8 @@ struct _ObClient /*! Indicates if the client is trying to close but has stopped responding to pings */ gboolean not_responding; + /*! We tried to kill the client with SIGTERM */ + gboolean kill_tried_term; #ifdef SYNC /*! The client wants to sync during resizes */ |
