<div dir="ltr">On Sat, Dec 29, 2012 at 2:54 AM, Raghavendra D Prabhu <span dir="ltr">&lt;<a href="mailto:raghu.prabhu13@gmail.com" target="_blank">raghu.prabhu13@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">I have seen it mostly with firefox (don&#39;t remember with others) and any other type of window. </div>
</blockquote><div><br></div><div>If it&#39;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 (&quot;return (All False)&quot;), which requires switching from the &quot;ewmh&quot; combinator to inlining it to your config, or writing a combinator of your own that you can stick in front of &quot;ewmh&quot; to override its handleEventHook.</div>
<div><br></div><div>Additionally, note that windows normally open on the current workspace; X11 isn&#39;t smart enough to do otherwise. There&#39;s something in ManageHelpers that can attempt to relocate popup windows to the workspaces of their parents:  <a href="http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-ManageHelpers.html#v:transience-39-">http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-ManageHelpers.html#v:transience-39-</a> (the trailing dash is part of the URL).</div>
<div><br></div></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div>
</div>