[xmonad] Emacs frame with STRUT+DOCK doesn't get keyboard focus

Ted Zlatanov tzz at lifelogs.com
Tue Jun 7 19:51:34 CEST 2011

On Tue, 7 Jun 2011 13:07:21 -0400 Brandon Allbery <allbery.b at gmail.com> wrote: 

BA> 2011/6/7 Ted Zlatanov <tzz at lifelogs.com>:
>> The above creates, for me, a new Emacs frame that behaves like a strut
>> (panel, dock, I'm not sure of the exact terminology).  It's unmoveable
>> and pinned to a window edge.  So far so good.  But XMonad doesn't give
>> it the keyboard focus; I can only use the mouse in that frame.  That's a
>> problem since Emacs is mostly keyboard-driven, so it's hard to do much
>> in that frame.

BA> Most of the dock management stuff does a doIgnore on windows, which
BA> means they'll never receive keyboard focus.  You'll find more flexible
BA> code in XMonad.Hooks.ManageHelpers for things like this; just leave
BA> off the doIgnore part.

OK, so it's not a bug?  It seems unreasonable to block docks from
getting the keyboard focus.  Why does XMonad do it and others don't?

Looking at the docs for XMonad.Hooks.ManageHelpers didn't help me much
(I don't know the XMonad internals and configuration well at all).
Could you provide an example of how I can do this for an Emacs frame
specifically (as created by my example)?


More information about the xmonad mailing list