xcbXorg: Indentation
This commit is contained in:
@@ -497,11 +497,11 @@ int xcbXorg_detachDeviceReq(const hk::device::SenseDeviceSpec &spec)
|
|||||||
[](const auto& param) { return param.first == "screen"; });
|
[](const auto& param) { return param.first == "screen"; });
|
||||||
|
|
||||||
std::cerr << __func__ << ": Device not attached: "
|
std::cerr << __func__ << ": Device not attached: "
|
||||||
<< "display=" << (displayIt != spec.providerParams.end()
|
<< "display=" << (displayIt != spec.providerParams.end()
|
||||||
? displayIt->second : "not specified")
|
? displayIt->second : "not specified")
|
||||||
<< ", screen=" << (screenIt != spec.providerParams.end()
|
<< ", screen=" << (screenIt != spec.providerParams.end()
|
||||||
? screenIt->second : "not specified")
|
? screenIt->second : "not specified")
|
||||||
<< ", selector=" << spec.deviceSelector << "\n";
|
<< ", selector=" << spec.deviceSelector << "\n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -514,10 +514,11 @@ int xcbXorg_detachDeviceReq(const hk::device::SenseDeviceSpec &spec)
|
|||||||
int newCount = --it->connection->refCount;
|
int newCount = --it->connection->refCount;
|
||||||
|
|
||||||
// If no more references, close the connection
|
// If no more references, close the connection
|
||||||
if (newCount == 0) {
|
if (newCount == 0)
|
||||||
|
{
|
||||||
XcbConnection::connections.erase(id);
|
XcbConnection::connections.erase(id);
|
||||||
std::cout << "Closed X server connection (display="
|
std::cout << "Closed X server connection (display="
|
||||||
<< id.display << ", screen=" << id.screen << ")\n";
|
<< id.display << ", screen=" << id.screen << ")\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
attachedDevices.erase(it);
|
attachedDevices.erase(it);
|
||||||
|
|||||||
Reference in New Issue
Block a user