mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
Use sortOn instead of sortBy comparing
This commit is contained in:
parent
aa67fa5352
commit
6079c61063
@ -300,7 +300,7 @@ pprWindowSet tg pp = do
|
|||||||
let depth topic = fromJust $ elemIndex topic (lastWs ++ [topic])
|
let depth topic = fromJust $ elemIndex topic (lastWs ++ [topic])
|
||||||
add_depth proj topic = proj pp . (((topic++":")++) . show) . depth $ topic
|
add_depth proj topic = proj pp . (((topic++":")++) . show) . depth $ topic
|
||||||
pp' = pp { ppHidden = add_depth ppHidden, ppVisible = add_depth ppVisible }
|
pp' = pp { ppHidden = add_depth ppHidden, ppVisible = add_depth ppVisible }
|
||||||
sortWindows = take maxDepth . sortBy (comparing $ depth . W.tag)
|
sortWindows = take maxDepth . sortOn (depth . W.tag)
|
||||||
return $ DL.pprWindowSet sortWindows urgents pp' winset
|
return $ DL.pprWindowSet sortWindows urgents pp' winset
|
||||||
|
|
||||||
-- | Given a prompt configuration and a topic configuration, trigger the action associated with
|
-- | Given a prompt configuration and a topic configuration, trigger the action associated with
|
||||||
|
Loading…
x
Reference in New Issue
Block a user