diff --git a/CHANGES.md b/CHANGES.md index e12c92d..8b2fe53 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # Change Log / Release Notes +## unknown + + * Fixed type of `xrrUpdateConfiguration` + ## 1.9.2 (2020-08-25) * Make sure that X11 search paths determined by autoconf are actually passed diff --git a/Graphics/X11/Xrandr.hsc b/Graphics/X11/Xrandr.hsc index 3075f28..4e7144c 100644 --- a/Graphics/X11/Xrandr.hsc +++ b/Graphics/X11/Xrandr.hsc @@ -460,10 +460,10 @@ xrrSelectInput dpy window mask = cXRRSelectInput dpy window (fromIntegral mask) foreign import ccall "XRRSelectInput" cXRRSelectInput :: Display -> Window -> CInt -> IO () -xrrUpdateConfiguration :: XEvent -> IO CInt +xrrUpdateConfiguration :: XEventPtr -> IO CInt xrrUpdateConfiguration = cXRRUpdateConfiguration foreign import ccall "XRRUpdateConfiguration" - cXRRUpdateConfiguration :: XEvent -> IO CInt + cXRRUpdateConfiguration :: XEventPtr -> IO CInt xrrRotations :: Display -> CInt -> IO (Rotation, Rotation) xrrRotations dpy screen =