Skip to content

Commit

Permalink
Fix type of xrrUpdateConfiguration
Browse files Browse the repository at this point in the history
XRRUpdateConfiguration takes XEvent* so it should be XEventPtr. There's
no good way to get XEvent anyway.
  • Loading branch information
liskin committed Feb 1, 2021
1 parent 93f8ba3 commit dca1ffb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions Graphics/X11/Xrandr.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit dca1ffb

Please sign in to comment.