Is there any difference with the X11 atoms XA_WM_NAME and “_NET_WM_NAME”?

心已入冬 提交于 2019-12-06 04:14:48

问题


Is there any difference with the atom defined in XA_WM_NAME defined in Xatom.h and the one got using XInternAtom(display, "_NET_WM_NAME", False)?

Edit: I made a little program which prints the integer value of both and I got: _NET_WM_NAME: 312, XA_WM_NAME: 39, so, they represent different atoms. What are the differences?

Thanks.


回答1:


They are different atoms, but they both represent the title of the window.

_NET_WM_NAME is part of the newer XDG/freedesktop.org window manager spec. Like other XDG string properties, it's defined as a UTF-8 encoded string, whereas the "legacy" WM_NAME uses the X "compound text" encoding.

Window managers that respect the XDG spec will use the _NET_WM_NAME property instead of WM_NAME if both are set.



来源:https://stackoverflow.com/questions/7706589/is-there-any-difference-with-the-x11-atoms-xa-wm-name-and-net-wm-name

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!