[Xcb] xproto: add any modifier for key?

Julien Danjou julien at danjou.info
Tue Aug 19 01:57:18 PDT 2008


Hi,

The attached patch add the « any » modifier value for modkey in xproto.
So you'll get XCB_MOD_MASK_ANY which does not exist right now.

This is _not_ necessary since you can use XCB_BUTTON_MASK_ANY which is
the same value (1<<15) but IMHO is confusing when you just want to grab
keys.

In xlib it's defined as
#define AnyModifier (1<<15)
which, IMHO, is a bit more clear.

I don't know what the specs are, any light would be appreciated.

Cheers,
-- 
Julien Danjou
// ᐰ <julien at danjou.info>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-xproto-add-any-modifier-as-a-mod-key-value.patch
Type: text/x-diff
Size: 710 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xcb/attachments/20080819/9ff0c128/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/xcb/attachments/20080819/9ff0c128/attachment.pgp 


More information about the Xcb mailing list