We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce2345c commit 6d62a7cCopy full SHA for 6d62a7c
src/linux/window_manager.cc
@@ -40,6 +40,11 @@ std::string getWindowTitle(const WindowHandle windowHandle) {
40
Display* xServer = XGetMainDisplay();
41
std::string windowName = "";
42
if (xServer != NULL) {
43
+ /*
44
+ * While there's also `XFetchName` to retrieve a window's `WM_NAME` property, in my tests `XFetchName` always failed and return 0
45
+ * `XGetWMName` on the other hand just worked as expected.
46
+ * Keep that in mind in case you're considering changing this implementation
47
+ */
48
XTextProperty windowTextProperty;
49
Status getWMNameResult = XGetWMName(xServer, windowHandle, &windowTextProperty);
50
if (getWMNameResult > 0) {
0 commit comments