xcbXorg: indentation

This commit is contained in:
2025-01-14 17:01:16 -04:00
parent a80db04dac
commit d31530e0bd
+7 -7
View File
@@ -34,9 +34,8 @@ struct XcbConnection
}; };
XcbConnection(const XConnectionIdentifier& id) XcbConnection(const XConnectionIdentifier& id)
: connection(nullptr, &xcb_disconnect) : connection(nullptr, &xcb_disconnect),
, connectionIdentifier(id) connectionIdentifier(id), refCount(0)
, refCount(0)
{ {
// Convert to X display string format (e.g., ":0.1") // Convert to X display string format (e.g., ":0.1")
std::string displayString = ":" + std::to_string(id.display) std::string displayString = ":" + std::to_string(id.display)
@@ -105,11 +104,12 @@ public:
std::string stringify() const std::string stringify() const
{ {
std::ostringstream os; std::ostringstream os;
os << "Display: " << xconn.display os << "Display: " << xconn.display
<< ", Screen: " << xconn.screen << ", Screen: " << xconn.screen
<< ", Window: " << (useWindowId ? << ", Window: " << (useWindowId
std::to_string(window.id) : ? std::to_string(window.id)
"\"" + window.name + "\""); : "\"" + window.name + "\"");
return os.str(); return os.str();
} }
}; };