Hi Adam,<br><br>Thank you so much for your answer! Hopefully people will chime in if they&#39;re negatively affected by the patch.<br><br>Thanks,<br>Hans<br><br><div class="gmail_quote">On Sun, Jan 6, 2013 at 9:55 PM, adam vogt <span dir="ltr">&lt;<a href="mailto:vogt.adam@gmail.com" target="_blank">vogt.adam@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>On Sun, Jan 6, 2013 at 6:27 PM, Hans Chen &lt;<a href="mailto:hanswchen@gmail.com" target="_blank">hanswchen@gmail.com</a>&gt; wrote:<br>
&gt; I use DynamicWorkspaces with a few predefined workspaces. The problem is<br>
&gt; that when creating a new workspace, it gets sorted before my predefined<br>
&gt; workspaces and thus I can&#39;t always have e.g. &quot;web&quot; on Mod+1.<br>
&gt;<br>
&gt; When searching for this issue I found the following patch:<br>
&gt; <a href="http://www.haskell.org/pipermail/xmonad/2012-July/012810.html" target="_blank">http://www.haskell.org/pipermail/xmonad/2012-July/012810.html</a><br>
&gt; I&#39;ve been using it successfully since then, and in my opinion this new<br>
&gt; behavior makes much more sense. My question is, does anyone know why the<br>
&gt; patch hasn&#39;t been merged yet? Is there anything I can do to get it merged?<br>
&gt;<br>
&gt; Note that I don&#39;t have anything to do with the patch, all credits goes to<br>
&gt; the original author Matthew Hague.<br>
<br>
</div></div>Hi Hans,<br>
<br>
It helps to point out that you find the patch to be useful, since<br>
the change isn&#39;t unequivocally &quot;better&quot;. For example, the<br>
workspace ordering I have (due XMonad.Actions.TopicSpace) puts<br>
the most recently used workspaces first. That&#39;s closer to what<br>
the current ordering getSortByIndex does than Matthew&#39;s patch. So<br>
I wouldn&#39;t be surprised if there are people who prefer the<br>
current behavior.<br>
<br>
So we can choose to do:<br>
<br>
 0. nothing<br>
 1. apply Matthew&#39;s patch as-is<br>
<br>
Making the result of getSortByIndex configurable by one of these<br>
methods:<br>
<br>
 2. store the function using XMonad.Util.ExtensibleState, which<br>
    can set to the right one using a startupHook (or elsewhere).<br>
 3. passing the actual function as a parameter (or as part of<br>
    another argument like XMonad.Hooks.DynamicLog.PP)<br>
 4. something else?<br>
<br>
Another note is that some other modules will be affected<br>
(benefit?) by the change to getSortByIndex:<br>
<br>
  Actions/CycleWS.hs<br>
  Actions/WorkspaceNames.hs<br>
  Actions/SwapWorkspaces.hs<br>
  Hooks/EwmhDesktops.hs<br>
  Hooks/DynamicLog.hs<br>
  Prompt/Workspace.hs<br>
<br>
<br>
Unless there are some objections, I will apply the patch (option<br>
1) in a week.<br>
<br>
--<br>
Adam<br>
</blockquote></div><br>