forked from selfspy/selfspy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sniff_x: fix getting utf8 window titles, via _NET_WM_NAME
This queried `_NET_WM_NAME` first, before falling back to the python-xlib method, which only queries for `WM_NAME` with type `STRING` (ignoring `UTF8_STRING` and `COMPOUND_TEXT`) therein. Ref: selfspy#56 (comment) (although selfspy#56 itself does not appear to be about the X sniffer).
- Loading branch information
Showing
1 changed file
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hardcoding atom ids doesn't work - need to do an intern as commented-out above. (I assume it will work to cache the atom for the duration of the program)