aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornwfilardo <nwfilardo@gmail.com>2014-09-13 19:41:18 +0200
committernwfilardo <nwfilardo@gmail.com>2014-09-13 19:41:18 +0200
commite9b52c885c2a691afb0f047fbe58c331a4c47f25 (patch)
tree39bbdf0ac6e04fbbf93c12e13697fd14181f8a8e
parent31412fc3eb806ffa9fadc47344aedda84ac99966 (diff)
downloadXMonadContrib-e9b52c885c2a691afb0f047fbe58c331a4c47f25.tar.gz
XMonadContrib-e9b52c885c2a691afb0f047fbe58c331a4c47f25.tar.xz
XMonadContrib-e9b52c885c2a691afb0f047fbe58c331a4c47f25.zip
reverse workspaces, so that switching to a dynamic workspace group restores the focus to the screen that was focused at group creation time
Ignore-this: b74c02b1892159694827e35122c2d517 darcs-hash:20140913174118-b769b-3fcb56b59a635c397828b6dd1e35e7c01a55693e.gz
-rw-r--r--XMonad/Actions/DynamicWorkspaceGroups.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Actions/DynamicWorkspaceGroups.hs b/XMonad/Actions/DynamicWorkspaceGroups.hs
index be457ef..9f12ad9 100644
--- a/XMonad/Actions/DynamicWorkspaceGroups.hs
+++ b/XMonad/Actions/DynamicWorkspaceGroups.hs
@@ -93,7 +93,7 @@ addWSGroup name wids = withWindowSet $ \w -> do
-- | Give a name to the current workspace group.
addCurrentWSGroup :: WSGroupId -> X ()
addCurrentWSGroup name = withWindowSet $ \w ->
- addWSGroup name $ map (W.tag . W.workspace) (W.current w : W.visible w)
+ addWSGroup name $ map (W.tag . W.workspace) (reverse $ W.current w : W.visible w)
-- | Delete the named workspace group from the list of workspace
-- groups. Note that this has no effect on the workspaces involved;