summaryrefslogtreecommitdiff
path: root/openbox/ping.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-01-15 22:34:04 -0500
committerDana Jansens <danakj@orodu.net>2008-01-15 22:34:04 -0500
commit810afd8597da355039e289218abed6c062585870 (patch)
tree9a5e2b82d547e43a83637ffdd9a077e371ea655c /openbox/ping.c
parentdbce9ee24320baa01e62d88485fb536c8d9a5e55 (diff)
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
Diffstat (limited to 'openbox/ping.c')
-rw-r--r--openbox/ping.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/ping.c b/openbox/ping.c
index 687dd7f4..874d020c 100644
--- a/openbox/ping.c
+++ b/openbox/ping.c
@@ -35,7 +35,7 @@ typedef struct _ObPingTarget
static GSList *ping_targets = NULL;
static gboolean active = FALSE;
-#define PING_TIMEOUT (G_USEC_PER_SEC * 1)
+#define PING_TIMEOUT (G_USEC_PER_SEC * 3)
/*! Warn the user after this many PING_TIMEOUT intervals */
#define PING_TIMEOUT_WARN 3
@@ -87,7 +87,7 @@ 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\n", timestamp);*/
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 +106,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 0x%x at %lu\n", t->client->window, 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);