[xmonad] Ratpoison key emulation

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sat Sep 20 13:17:49 EDT 2008

On 2008 Sep 20, at 13:14, Gwern Branwen wrote:
> 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.
> 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.

Yes, ideally it'd be in XPaste.hs; the likely reason it's not there is  
that it's a straight port of the C code so it's using a C-style bit  
mask instead of something more Haskelly like a list or set of an Enum  
a => a type.

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the xmonad mailing list