
On 2008.09.20 12:31:22 -0400, "Brandon S. Allbery KF8NH"
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
That would work, certainly. But isn't that really the X11 library's job? Intuitively, defining noModMask in XPaste.hs feels wrong & completely out of place. -- gwern Shayet-13 fake Freedom Recce b Richard DSNET2 Ortega MI6 CMW