xcbXorg: Indentation

This commit is contained in:
2025-01-14 21:12:41 -04:00
parent 098b79b331
commit ff56bfce04
+8 -7
View File
@@ -497,11 +497,11 @@ int xcbXorg_detachDeviceReq(const hk::device::SenseDeviceSpec &spec)
[](const auto& param) { return param.first == "screen"; });
std::cerr << __func__ << ": Device not attached: "
<< "display=" << (displayIt != spec.providerParams.end()
? displayIt->second : "not specified")
<< ", screen=" << (screenIt != spec.providerParams.end()
? screenIt->second : "not specified")
<< ", selector=" << spec.deviceSelector << "\n";
<< "display=" << (displayIt != spec.providerParams.end()
? displayIt->second : "not specified")
<< ", screen=" << (screenIt != spec.providerParams.end()
? screenIt->second : "not specified")
<< ", selector=" << spec.deviceSelector << "\n";
return 0;
}
@@ -514,10 +514,11 @@ int xcbXorg_detachDeviceReq(const hk::device::SenseDeviceSpec &spec)
int newCount = --it->connection->refCount;
// If no more references, close the connection
if (newCount == 0) {
if (newCount == 0)
{
XcbConnection::connections.erase(id);
std::cout << "Closed X server connection (display="
<< id.display << ", screen=" << id.screen << ")\n";
<< id.display << ", screen=" << id.screen << ")\n";
}
attachedDevices.erase(it);