mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-08 16:01:53 -07:00
X.Prompt: Document destroyComplWin
This commit is contained in:
@@ -1514,14 +1514,13 @@ getCompletions = do
|
|||||||
XPSingleMode compl _ -> compl
|
XPSingleMode compl _ -> compl
|
||||||
XPMultipleModes modes -> completionFunction $ W.focus modes
|
XPMultipleModes modes -> completionFunction $ W.focus modes
|
||||||
|
|
||||||
|
-- | Destroy the currently drawn completion window, if there is one.
|
||||||
destroyComplWin :: XP ()
|
destroyComplWin :: XP ()
|
||||||
destroyComplWin = do
|
destroyComplWin = do
|
||||||
d <- gets dpy
|
XPS{ dpy, complWin, complWinRef } <- get
|
||||||
cw <- gets complWin
|
case complWin of
|
||||||
wr <- gets complWinRef
|
Just w -> do io $ destroyWindow dpy w
|
||||||
case cw of
|
io $ writeIORef complWinRef Nothing
|
||||||
Just w -> do io $ destroyWindow d w
|
|
||||||
io $ writeIORef wr Nothing
|
|
||||||
modify (\s -> s { complWin = Nothing, complWinDim = Nothing })
|
modify (\s -> s { complWin = Nothing, complWinDim = Nothing })
|
||||||
Nothing -> return ()
|
Nothing -> return ()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user