mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -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
|
||||
elmap' = zip coords elmap
|
||||
|
||||
evalTwoD (updateAllElements >> eventLoop)
|
||||
(TwoDState (head coords)
|
||||
elmap'
|
||||
gsconfig
|
||||
font
|
||||
screenWidth
|
||||
screenHeight
|
||||
win)
|
||||
evalTwoD (updateAllElements >> eventLoop) TwoDState { td_curpos = (head coords),
|
||||
td_elementmap = elmap',
|
||||
td_gsconfig = gsconfig,
|
||||
td_font = font,
|
||||
td_paneX = screenWidth,
|
||||
td_paneY = screenHeight,
|
||||
td_drawingWin = win }
|
||||
else
|
||||
return Nothing
|
||||
liftIO $ do
|
||||
|
Reference in New Issue
Block a user