[xmonad] Window gets pulled into another workspace

Brandon Allbery allbery.b at gmail.com
Sat Dec 29 16:46:04 CET 2012

On Sat, Dec 29, 2012 at 2:54 AM, Raghavendra D Prabhu <
raghu.prabhu13 at gmail.com> wrote:

> I have seen it mostly with firefox (don't remember with others) and any
> other type of window.

If it's Firefox windows and not terminal windows that switch workspaces on
you, it is Firefox sending EWMH messages to steal focus, which can have the
side effect of the window moving to the workspace that has the focus.
 Changing this requires disabling EwmhDesktops, or modifying it (there is
no control for it, sadly) to disable the focus message — or inserting an
earlier handleEventHook to detect and ignore the message without passing it
on ("return (All False)"), which requires switching from the "ewmh"
combinator to inlining it to your config, or writing a combinator of your
own that you can stick in front of "ewmh" to override its handleEventHook.

Additionally, note that windows normally open on the current workspace; X11
isn't smart enough to do otherwise. There's something in ManageHelpers that
can attempt to relocate popup windows to the workspaces of their parents:
trailing dash is part of the URL).

brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20121229/24172be2/attachment.htm>

More information about the xmonad mailing list