From 0a65d69e806c9396b6de29ccf35c0863a59a1a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 15 Jan 2004 12:18:27 +0000 Subject: [PATCH] Avoid the warning when it's the same client activated twice using the same timestamp (e.g. when clicking on the kgpg systray icon). svn path=/trunk/kdebase/kwin/; revision=279888 --- client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index 62ac79730f..f77a272beb 100644 --- a/client.cpp +++ b/client.cpp @@ -1100,12 +1100,14 @@ void Client::takeFocus( bool force, allowed_t ) #ifndef NDEBUG static Time previous_focus_timestamp; - if( previous_focus_timestamp == qt_x_time ) + static Client* previous_client; + if( previous_focus_timestamp == qt_x_time && previous_client != this ) { kdWarning( 1212 ) << "Repeated use of the same X timestamp for focus" << endl; kdDebug( 1212 ) << kdBacktrace() << endl; } previous_focus_timestamp = qt_x_time; + previous_client = this; #endif if ( input ) {