[xmonad] Ratpoison key emulation

Gwern Branwen gwern0 at gmail.com
Sat Sep 20 13:14:27 EDT 2008

On 2008.09.20 12:31:22 -0400, "Brandon S. Allbery KF8NH" <allbery at ece.cmu.edu> scribbled 0.9K characters:
> On 2008 Sep 20, at 11:37, Gwern Branwen wrote:
>> On 2008.09.19 15:40:25 -0500, Spencer Janssen <spencerjanssen at gmail.com
>> > 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 at 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.

Shayet-13 fake Freedom Recce b Richard DSNET2 Ortega MI6 CMW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://www.haskell.org/pipermail/xmonad/attachments/20080920/a3f80075/attachment.bin

More information about the xmonad mailing list