mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Use less short names in X.Prompt
This commit is contained in:
parent
aa6f4882a4
commit
b4acd87c7a
@ -266,9 +266,7 @@ getInput = gets command
|
||||
-- module.
|
||||
mkXPromptWithReturn :: XPrompt p => p -> XPConfig -> ComplFunction -> (String -> X a) -> X (Maybe a)
|
||||
mkXPromptWithReturn t conf compl action = do
|
||||
c <- ask
|
||||
let d = display c
|
||||
rw = theRoot c
|
||||
XConf { display = d, theRoot = rw } <- ask
|
||||
s <- gets $ screenRect . W.screenDetail . W.current . windowset
|
||||
hist <- io readHistory
|
||||
w <- io $ createWin d rw conf s
|
||||
@ -313,8 +311,7 @@ mkXPrompt t conf compl action = mkXPromptWithReturn t conf compl action >> retur
|
||||
|
||||
runXP :: XP ()
|
||||
runXP = do
|
||||
st <- get
|
||||
let (d,w) = (dpy &&& win) st
|
||||
(d,w) <- gets (dpy &&& win)
|
||||
status <- io $ grabKeyboard d w True grabModeAsync grabModeAsync currentTime
|
||||
when (status == grabSuccess) $ do
|
||||
updateWindows
|
||||
|
Loading…
x
Reference in New Issue
Block a user