i learnt what xkb does with the state.
authorDana Jansens <danakj@orodu.net>
Wed, 10 Feb 2010 02:03:01 +0000 (21:03 -0500)
committerDana Jansens <danakj@orodu.net>
Thu, 11 Feb 2010 16:01:15 +0000 (11:01 -0500)
commitc168faee634d3c3f9494b2a4da89b80d10f311ce
tree8595091ec43cbfd8b6e309182536d11264634b20
parente9070fe7da03effb198c0bbae8293f22fdf36085
i learnt what xkb does with the state.

use the state from keyrelease events directly, rather than query the state (which is not as accurate!)

the xkb state (as opposed to the normally sent compat state) contains extra info like the keyboard group, the pointer buttons, etc.  so we can just strip that stuff out. (See section 2.2.2 of the XKB proto document)
openbox/event.c