mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Decoration.hs: variable names consistency only
This commit is contained in:
parent
7e8276d0b7
commit
0d69127db5
@ -157,10 +157,10 @@ instance (DecorationStyle ds Window, Shrinker s) => LayoutModifier (Decoration d
|
|||||||
|
|
||||||
-- We drop any windows that are *precisely* stacked underneath
|
-- We drop any windows that are *precisely* stacked underneath
|
||||||
-- another window: these must be intended to be tabbed!
|
-- another window: these must be intended to be tabbed!
|
||||||
insert_dwr otherRs (((w,r),(dw,Just dr)):zzz)
|
insert_dwr otherRs (((w,r),(dw,Just dr)):dwrs)
|
||||||
| r `elem` otherRs = (dw,dr):insert_dwr otherRs zzz
|
| r `elem` otherRs = (dw,dr):insert_dwr otherRs dwrs
|
||||||
| otherwise = (dw,dr):(w, shrink ds dr r):insert_dwr (r:otherRs) zzz
|
| otherwise = (dw,dr):(w, shrink ds dr r):insert_dwr (r:otherRs) dwrs
|
||||||
insert_dwr otherRs (((w,r),(_ ,Nothing)):zzz) = (w,r):insert_dwr (r:otherRs) zzz
|
insert_dwr otherRs (((w,r),(_ ,Nothing)):dwrs) = (w,r):insert_dwr (r:otherRs) dwrs
|
||||||
insert_dwr _ [] = []
|
insert_dwr _ [] = []
|
||||||
|
|
||||||
resync _ [] = return []
|
resync _ [] = return []
|
||||||
@ -222,8 +222,8 @@ handleMouseResize :: DecorationState -> Event -> X ()
|
|||||||
handleMouseResize _ _ = return ()
|
handleMouseResize _ _ = return ()
|
||||||
|
|
||||||
lookFor :: Window -> [(OrigWin,DecoWin)] -> Maybe (OrigWin,DecoWin)
|
lookFor :: Window -> [(OrigWin,DecoWin)] -> Maybe (OrigWin,DecoWin)
|
||||||
lookFor w ((x,(w',y)):zs) | w == w' = Just (x,(w',y))
|
lookFor w ((wr,(dw,dr)):dwrs) | w == dw = Just (wr,(dw,dr))
|
||||||
| otherwise = lookFor w zs
|
| otherwise = lookFor w dwrs
|
||||||
lookFor _ [] = Nothing
|
lookFor _ [] = Nothing
|
||||||
|
|
||||||
getDWs :: [(OrigWin,DecoWin)] -> [Window]
|
getDWs :: [(OrigWin,DecoWin)] -> [Window]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user