[英]Is there any difference with the X11 atoms XA_WM_NAME and “_NET_WM_NAME”?
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)
? 是否与所定义的原子的任何差异XA_WM_NAME
定义在Xatom.h
和一个使用得到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. 编辑:我做了一个小程序打印两者的整数值,我得到了: _NET_WM_NAME: 312, XA_WM_NAME: 39
,所以,它们代表不同的原子。 What are the differences? 有什么区别?
Thanks. 谢谢。
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 . _NET_WM_NAME
是较新的XDG / freedesktop.org窗口管理器规范的一部分 。 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. 与其他XDG字符串属性一样,它被定义为UTF-8编码字符串,而“遗留” WM_NAME
使用X“复合文本”编码。
Window managers that respect the XDG spec will use the _NET_WM_NAME
property instead of WM_NAME
if both are set. 尊重XDG规范的窗口管理器将使用_NET_WM_NAME
属性而不是WM_NAME
如果两者都已设置)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.