[xmonad] Ratpoison key emulation

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sat Sep 20 12:31:22 EDT 2008


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
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