From abc67cbdc1c1e61e074f8f312eaecb357cd0aa5c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 11 Jan 2008 15:28:26 -0500 Subject: make it possible to temporarily raise a window to the top, and restore it. also fix the return val for window_layer. --- openbox/client.h | 1 + 1 file changed, 1 insertion(+) (limited to 'openbox/client.h') diff --git a/openbox/client.h b/openbox/client.h index b4b165f8..e83a6b7a 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -24,6 +24,7 @@ #include "mwm.h" #include "geom.h" #include "stacking.h" +#include "window.h" #include "render/color.h" #include -- cgit v1.2.3 From d790dc162d24cfdcc236114b50c51af62612646a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 15 Jan 2008 20:48:28 -0500 Subject: check if a client will respond to pings --- openbox/client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbox/client.h') diff --git a/openbox/client.h b/openbox/client.h index e83a6b7a..49ff72bc 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -220,6 +220,9 @@ struct _ObClient /*! Notify the window when it receives focus? */ gboolean focus_notify; + /*! Will the client respond to pings? */ + gboolean ping; + #ifdef SYNC /*! The client wants to sync during resizes */ gboolean sync_request; -- cgit v1.2.3 From d3e9fc8941831477b50678b9bd676e29f4bed1a7 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 15 Jan 2008 21:57:47 -0500 Subject: show [Not Responding] in the titlebar when closing an app and it stops responding to pings --- openbox/client.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openbox/client.h') diff --git a/openbox/client.h b/openbox/client.h index 49ff72bc..672b3822 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -222,6 +222,9 @@ struct _ObClient /*! Will the client respond to pings? */ gboolean ping; + /*! Indicates if the client is trying to close but has stopped responding + to pings */ + gboolean not_responding; #ifdef SYNC /*! The client wants to sync during resizes */ -- cgit v1.2.3 From e6d33facc8f02a068f62b4f60c2872589b620dab Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 15 Jan 2008 22:13:16 -0500 Subject: 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) --- openbox/client.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'openbox/client.h') 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 #include +#ifdef HAVE_SYS_TYPES_H +# include /* 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 */ -- cgit v1.2.3 From 810afd8597da355039e289218abed6c062585870 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 15 Jan 2008 22:34:04 -0500 Subject: ping all the windows every 3 seconds, and show "not responding" if they stop replying for 3 times (9-12 seconds). show [Killing...] in the titlebar when trying to kill an app off --- openbox/client.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'openbox/client.h') diff --git a/openbox/client.h b/openbox/client.h index f568b008..b9dd9e5a 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -231,8 +231,10 @@ 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; + /*! We tried to close the window with a DESTROY message */ + gboolean close_tried_destroy; + /*! We tried to close the window with a SIGTERM */ + gboolean close_tried_term; #ifdef SYNC /*! The client wants to sync during resizes */ -- cgit v1.2.3 From f9f32d9fbaae9ca415603bb61b36393994afbd16 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 15 Jan 2008 22:51:04 -0500 Subject: cant consistently tell if we should use WM_DESTROY after the first time they try close a window.. so just kill when "not responding" is showing --- openbox/client.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'openbox/client.h') diff --git a/openbox/client.h b/openbox/client.h index b9dd9e5a..0efeb197 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -231,8 +231,6 @@ struct _ObClient /*! Indicates if the client is trying to close but has stopped responding to pings */ gboolean not_responding; - /*! We tried to close the window with a DESTROY message */ - gboolean close_tried_destroy; /*! We tried to close the window with a SIGTERM */ gboolean close_tried_term; -- cgit v1.2.3