[英]XCB STRING and WM_NAME not defined
Where are STRING
and WM_NAME
defined? STRING
和WM_NAME
在哪里定义?
My xcb_atom.h
file only contains 3 function declarations, when I was expecting it to look like this: http://www.opensource.apple.com/source/X11libs/X11libs-40/xcb-util/xcb-util-0.3.3/atom/xcb_atom.h 当我期望xcb_atom.h
文件看起来像这样时,它仅包含3个函数声明: http : //www.opensource.apple.com/source/X11libs/X11libs-40/xcb-util/xcb-util-0.3 0.3 /原子/ xcb_atom.h
I also have a xcb_ewmh.h
file that contains similar atoms but I cannot find any documentation on it. 我也有一个xcb_ewmh.h
文件,其中包含相似的原子,但是找不到任何文档。
How do I fix this? 我该如何解决?
As noted in the other answer, the symbols are in xproto.h
which is dragged in by xcb.h
, but are not named as in the XCB tutorial. 如另一个答案所述,这些符号位于xproto.h
,该符号由xcb.h
,但未在XCB教程中命名。 You need to use XCB_ATOM_WM_NAME
and XCB_ATOM_WM_STRING
. 您需要使用XCB_ATOM_WM_NAME
和XCB_ATOM_WM_STRING
。
I grepped my /usr/include/xcb
directory: 我grep了我的/usr/include/xcb
目录:
$ grep -r WM_NAME
xproto.h: XCB_ATOM_WM_NAME
So, they're defined in xproto.h
, which is included by the following: 因此,它们是在xproto.h
定义的,它包含在以下内容中:
$ grep -l -r xproto.h
xvmc.h
shape.h
shm.h
xselinux.h
render.h
glx.h
xcb.h
screensaver.h
xtest.h
xkb.h
sync.h
xinerama.h
res.h
composite.h
damage.h
xprint.h
xv.h
xfixes.h
xinput.h
randr.h
dri2.h
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.