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/prop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/prop.h') diff --git a/openbox/prop.h b/openbox/prop.h index f0c4f5e9..fd12f98a 100644 --- a/openbox/prop.h +++ b/openbox/prop.h @@ -136,7 +136,7 @@ typedef struct Atoms { Atom net_frame_extents; /* application protocols */ -/* Atom net_wm_ping; */ + Atom net_wm_ping; #ifdef SYNC Atom net_wm_sync_request; Atom net_wm_sync_request_counter; -- cgit v1.2.3 From fb7a71da202632c7301ada67c8b4420bfb8d8fbe Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 15 Jan 2008 21:40:15 -0500 Subject: can tell when a window that was "closed" has stopped responding now --- openbox/prop.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'openbox/prop.h') diff --git a/openbox/prop.h b/openbox/prop.h index fd12f98a..13c338ef 100644 --- a/openbox/prop.h +++ b/openbox/prop.h @@ -218,6 +218,9 @@ void prop_erase(Window win, Atom prop); void prop_message(Window about, Atom messagetype, glong data0, glong data1, glong data2, glong data3, glong mask); +void prop_message_to(Window to, Window about, Atom messagetype, + glong data0, glong data1, glong data2, + glong data3, glong data4, glong mask); #define PROP_GET32(win, prop, type, ret) \ (prop_get32(win, prop_atoms.prop, prop_atoms.type, ret)) @@ -244,4 +247,9 @@ void prop_message(Window about, Atom messagetype, glong data0, glong data1, (prop_message(about, prop_atoms.msgtype, data0, data1, data2, data3, \ SubstructureNotifyMask | SubstructureRedirectMask)) +#define PROP_MSG_TO(to, about, msgtype, data0, data1, data2, data3, data4, \ + mask) \ + (prop_message_to(to, about, prop_atoms.msgtype, \ + data0, data1, data2, data3, data4, mask)) + #endif -- 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/prop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/prop.h') diff --git a/openbox/prop.h b/openbox/prop.h index 13c338ef..92884144 100644 --- a/openbox/prop.h +++ b/openbox/prop.h @@ -129,7 +129,7 @@ typedef struct Atoms { Atom net_wm_strut_partial; Atom net_wm_icon; Atom net_wm_icon_geometry; -/* Atom net_wm_pid; */ + Atom net_wm_pid; Atom net_wm_allowed_actions; Atom net_wm_user_time; /* Atom net_wm_user_time_window; */ -- cgit v1.2.3 From 0be98fee4743c795b06aa23881b82eff5bab3ef6 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Wed, 16 Jan 2008 15:25:08 +0100 Subject: Various fixes for sparse warnings. Define void functions with (void), not (). Add missing includes. Some functions were declared static but defined non-static. Some variables that should be file static were file global but not used in any other file. prop.h defined a new prop_atoms in each file that included it instead of declaring it extern. --- openbox/prop.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbox/prop.h') diff --git a/openbox/prop.h b/openbox/prop.h index 92884144..5ca70470 100644 --- a/openbox/prop.h +++ b/openbox/prop.h @@ -196,7 +196,7 @@ typedef struct Atoms { Atom ob_theme; Atom ob_control; } Atoms; -Atoms prop_atoms; +extern Atoms prop_atoms; void prop_startup(); -- cgit v1.2.3