diff --git a/senseApis/xcbXorg/xcbXorg.cpp b/senseApis/xcbXorg/xcbXorg.cpp index c0d506d..6f009b6 100644 --- a/senseApis/xcbXorg/xcbXorg.cpp +++ b/senseApis/xcbXorg/xcbXorg.cpp @@ -34,9 +34,8 @@ struct XcbConnection }; XcbConnection(const XConnectionIdentifier& id) - : connection(nullptr, &xcb_disconnect) - , connectionIdentifier(id) - , refCount(0) + : connection(nullptr, &xcb_disconnect), + connectionIdentifier(id), refCount(0) { // Convert to X display string format (e.g., ":0.1") std::string displayString = ":" + std::to_string(id.display) @@ -105,11 +104,12 @@ public: std::string stringify() const { std::ostringstream os; + os << "Display: " << xconn.display - << ", Screen: " << xconn.screen - << ", Window: " << (useWindowId ? - std::to_string(window.id) : - "\"" + window.name + "\""); + << ", Screen: " << xconn.screen + << ", Window: " << (useWindowId + ? std::to_string(window.id) + : "\"" + window.name + "\""); return os.str(); } };