summaryrefslogtreecommitdiff
path: root/openbox/ping.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-01-15 22:51:04 -0500
committerDana Jansens <danakj@orodu.net>2008-01-15 22:51:04 -0500
commitf9f32d9fbaae9ca415603bb61b36393994afbd16 (patch)
treef7c2f8a7280cdacae1d8cf30ce2583aabb7c96d1 /openbox/ping.c
parentd5c824cfd4ec84155772a5c482b0ffdc99dc1ab9 (diff)
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
Diffstat (limited to 'openbox/ping.c')
-rw-r--r--openbox/ping.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/ping.c b/openbox/ping.c
index 874d020c..531b8938 100644
--- a/openbox/ping.c
+++ b/openbox/ping.c
@@ -87,7 +87,8 @@ void ping_got_pong(Time timestamp)
for (it = ping_targets; it != NULL; it = g_slist_next(it)) {
t = it->data;
if (t->sent == timestamp) {
- /*ob_debug("Got PONG with timestamp %lu\n", timestamp);*/
+ ob_debug("Got PONG with timestamp %lu for %s\n", timestamp,
+ t->client->title);
if (t->waiting > PING_TIMEOUT_WARN) {
/* we had notified that they weren't responding, so now we
need to notify that they are again */
@@ -106,7 +107,7 @@ void ping_got_pong(Time timestamp)
static void ping_send(ObPingTarget *t)
{
t->sent = event_get_server_time();
- /*ob_debug("PINGing client 0x%x at %lu\n", t->client->window, t->sent);*/
+ ob_debug("PINGing client %s at %lu\n", t->client->title, t->sent);
PROP_MSG_TO(t->client->window, t->client->window, wm_protocols,
prop_atoms.net_wm_ping, t->sent, t->client->window, 0, 0,
NoEventMask);