forked from colonelpanic/dotfiles
[XMonad] Reindent windowAct
This commit is contained in:
parent
725b5f5c30
commit
ccbff942e8
@ -433,16 +433,13 @@ chromeTabAction doSplit action selected =
|
|||||||
|
|
||||||
-- This needs access to X in order to unminimize, which means that it can't be
|
-- This needs access to X in order to unminimize, which means that it can't be
|
||||||
-- done with the existing window bringer interface
|
-- done with the existing window bringer interface
|
||||||
myWindowAct c@WindowBringerConfig { menuCommand = cmd
|
myWindowAct c@WindowBringerConfig {menuCommand = cmd, menuArgs = args} action = do
|
||||||
, menuArgs = args
|
visible <- visibleWindows
|
||||||
} action =
|
ws <- windowMap' c {windowFilter = not . flip elem visible}
|
||||||
do
|
|
||||||
visible <- visibleWindows
|
|
||||||
ws <- windowMap' c { windowFilter = not . flip elem visible }
|
|
||||||
-- chromeTabs <- liftIO getChromeTabInfo
|
-- chromeTabs <- liftIO getChromeTabInfo
|
||||||
let options = M.union (M.map Left ws) (M.map Right M.empty)
|
let options = M.union (M.map Left ws) (M.map Right M.empty)
|
||||||
selection <- DM.menuMapArgs cmd args options
|
selection <- DM.menuMapArgs cmd args options
|
||||||
whenJust selection action
|
whenJust selection action
|
||||||
|
|
||||||
doBringWindow window =
|
doBringWindow window =
|
||||||
maximizeWindow window >> windows (W.focusWindow window . bringWindow window)
|
maximizeWindow window >> windows (W.focusWindow window . bringWindow window)
|
||||||
|
Loading…
Reference in New Issue
Block a user