mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
fix window rectangle calculation in X.A.UpdatePointer
This commit is contained in:
@@ -91,8 +91,10 @@ updatePointer p = do
|
||||
where fraction x y = floor (x * fromIntegral y)
|
||||
|
||||
windowAttributesToRectangle :: WindowAttributes -> Rectangle
|
||||
windowAttributesToRectangle wa = Rectangle (fi (wa_x wa)) (fi (wa_y wa))
|
||||
(fi (wa_width wa)) (fi (wa_height wa))
|
||||
windowAttributesToRectangle wa = Rectangle (fi (wa_x wa))
|
||||
(fi (wa_y wa))
|
||||
(fi (wa_width wa + 2 * wa_border_width wa))
|
||||
(fi (wa_height wa + 2 * wa_border_width wa))
|
||||
moveWithin :: Ord a => a -> a -> a -> a
|
||||
moveWithin now lower upper =
|
||||
if now < lower
|
||||
|
Reference in New Issue
Block a user