reverse workspaces, so that switching to a dynamic workspace group restores the focus to the screen that was focused at group creation time

This commit is contained in:
nwfilardo 2014-09-13 17:41:18 +00:00
parent 4efaa673fe
commit c073651cc2

View File

@ -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;