
On 2008 Sep 20, at 11:37, Gwern Branwen wrote:
On 2008.09.19 15:40:25 -0500, Spencer Janssen
scribbled 2.0K characters: On Fri, Sep 19, 2008 at 02:33:00PM -0400, Gwern Branwen wrote:
My first question is, is there any way to scrap all the KeyMask plumbing? I looked at the X11 docs, but there doesn't seem to be any null modmask - mod1Mask is Alt, Shift is Shift, and so on.
KeyMask is a bitmask, so 0 is the no modifiers pressed state. I'd also leave the KeyMask argument on sendKeysym and sendKeyscreen -- some users want to send keys with modifiers (eg. the person that started this thread).
Ah. I feel a little guilty bypassing the Mod* types to plug in in a 0, but it works, it seems.
You might export a noModMask = 0. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH