From f2e88d24910c1c4a8e6c0f89770a6abd36b6fbab Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 8 May 2007 02:31:46 +0000 Subject: [PATCH] only show the debug message when relevent --- openbox/event.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openbox/event.c b/openbox/event.c index 1c640f13..ace3e861 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1047,9 +1047,10 @@ static void event_handle_client(ObClient *client, XEvent *e) (e->xclient.data.l[0] == 2 ? "user" : "INVALID")))); /* XXX make use of data.l[2] !? */ event_curtime = e->xclient.data.l[1]; - ob_debug_type(OB_DEBUG_APP_BUGS, - "_NET_ACTIVE_WINDOW message for window %s is " - "missing a timestamp\n", client->title); + if (event_curtime == 0) + ob_debug_type(OB_DEBUG_APP_BUGS, + "_NET_ACTIVE_WINDOW message for window %s is " + "missing a timestamp\n", client->title); client_activate(client, FALSE, (e->xclient.data.l[0] == 0 || e->xclient.data.l[0] == 2)); -- 2.45.2