mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-21 23:13:48 -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)
|
where fraction x y = floor (x * fromIntegral y)
|
||||||
|
|
||||||
windowAttributesToRectangle :: WindowAttributes -> Rectangle
|
windowAttributesToRectangle :: WindowAttributes -> Rectangle
|
||||||
windowAttributesToRectangle wa = Rectangle (fi (wa_x wa)) (fi (wa_y wa))
|
windowAttributesToRectangle wa = Rectangle (fi (wa_x wa))
|
||||||
(fi (wa_width wa)) (fi (wa_height 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 :: Ord a => a -> a -> a -> a
|
||||||
moveWithin now lower upper =
|
moveWithin now lower upper =
|
||||||
if now < lower
|
if now < lower
|
||||||
|
Reference in New Issue
Block a user