XFetchName fails to get the window name in some cases, returning an empty string (in my case, of 5 windows it was fetching only one name correctly). Using XGetWMName makes sure the property is correctly fetched and converted to a string, and is encoding-aware.
XFetchName fails to get the window name in some cases, returning an empty string (in my case, of 5 windows it was fetching only one name correctly). Using XGetWMName makes sure the property is correctly fetched and converted to a string, and is encoding-aware.