mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
X.A.WindowNavigation: ugh, typo
This commit is contained in:
parent
70caa5a67b
commit
6eb5074bd1
@ -43,8 +43,6 @@ import Graphics.X11.Xlib
|
||||
-- Don't use it! What, are you crazy?
|
||||
|
||||
-- TODO:
|
||||
-- - 1. 2x2, top right; 2. a,j,d 3. error!
|
||||
-- - implement swap
|
||||
-- - cleanup
|
||||
-- - documentation :)
|
||||
-- - tests? (esp. for edge cases in currentPosition)
|
||||
@ -125,7 +123,7 @@ currentPosition posRef = do
|
||||
|
||||
where Point px py `inside` Rectangle rx ry rw rh =
|
||||
px >= rx && px < rx + fromIntegral rw &&
|
||||
py >= rx && py < ry + fromIntegral rh
|
||||
py >= ry && py < ry + fromIntegral rh
|
||||
|
||||
middleOf (Rectangle x y w h) =
|
||||
Point (x + fromIntegral w `div` 2) (y + fromIntegral h `div` 2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user