On 05/01/2013 05:38 AM, Christopher Cope wrote:
On 05/01/2013 07:21 AM, Christopher Cope wrote:
I am unsure how the "enum x11drv_atoms" in the file
dlls/winex11.dev/x11drv.h works. My /usr/include/Xatom.h defines
XA_LAST_PREDEFINED as 68. Presumably, therefore XATOM_Rel_X and
XATOM_Rel_X should be 81 and 82 respectively. However, when I dump
the values I get 195 and 196. I am attempting to add XATOM_Abs_X and
XATOM_Abs_X with values of 480 and 481 for a patch I'm working on. I
could simply define the values elsewhere, but I assumed I should try
to make it blend with the other code as much as possible. Any help is
appreciated thank you.
I think I may have it figured out. Is it just a place holder until
XInternAtoms returns the appropriate values?
Looks like; x11drv_main.c contains the X11DRV_Atoms and atom_names
arrays, and on line 569 it populates X11DRV_Atoms with the X server's
correct atoms.
So, the purpose of a value in enum x11drv_atoms is only to serve as a
key into the X11DRV_Atoms array to look up the real atom.