Drop static previous_client from Client::takeFocus
Only set but never read. The debug code for verifying was commented out as it would no longer compile. Let's just get rid of it completely.icc-effect-5.14.5
parent
89b28c32da
commit
67f7e8da34
13
client.cpp
13
client.cpp
|
@ -1352,19 +1352,6 @@ void Client::setOnAllActivities(bool on)
|
|||
*/
|
||||
void Client::takeFocus()
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
static Time previous_focus_timestamp;
|
||||
static Client* previous_client;
|
||||
|
||||
//if ( previous_focus_timestamp == xTime() && previous_client != this )
|
||||
// {
|
||||
// qDebug() << "Repeated use of the same X timestamp for focus";
|
||||
// qDebug() << kBacktrace();
|
||||
// }
|
||||
|
||||
previous_focus_timestamp = xTime();
|
||||
previous_client = this;
|
||||
#endif
|
||||
if (rules()->checkAcceptFocus(info->input()))
|
||||
m_client.focus();
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue