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.
remotes/origin/graesslin/sharing-platform-context-no-surfaceless
Martin Gräßlin 10 years ago
parent 89b28c32da
commit 67f7e8da34
  1. 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…
Cancel
Save