mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-11 02:02:11 -07:00
Make use of field names when constructing TwoDState in X.A.GridSelect
This commit is contained in:
@@ -439,14 +439,13 @@ gridselect gsconfig elmap =
|
|||||||
coords = diamondRestrict restrictX restrictY originPosX originPosY
|
coords = diamondRestrict restrictX restrictY originPosX originPosY
|
||||||
elmap' = zip coords elmap
|
elmap' = zip coords elmap
|
||||||
|
|
||||||
evalTwoD (updateAllElements >> eventLoop)
|
evalTwoD (updateAllElements >> eventLoop) TwoDState { td_curpos = (head coords),
|
||||||
(TwoDState (head coords)
|
td_elementmap = elmap',
|
||||||
elmap'
|
td_gsconfig = gsconfig,
|
||||||
gsconfig
|
td_font = font,
|
||||||
font
|
td_paneX = screenWidth,
|
||||||
screenWidth
|
td_paneY = screenHeight,
|
||||||
screenHeight
|
td_drawingWin = win }
|
||||||
win)
|
|
||||||
else
|
else
|
||||||
return Nothing
|
return Nothing
|
||||||
liftIO $ do
|
liftIO $ do
|
||||||
|
Reference in New Issue
Block a user