Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update type signature of waitForEvent #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Graphics/X11/Xlib/Event.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ get_ConfigureEvent p = peekXConfigureEvent (castPtr p)

-- | Reads an event with a timeout (in microseconds).
-- Returns True if timeout occurs.
waitForEvent :: Display -> Word32 -> IO Bool
waitForEvent :: Display -> Word64 -> IO Bool
waitForEvent display usecs =
with (TimeVal (fromIntegral usecs `div` 1000000) (fromIntegral usecs `mod` 1000000)) $ \ tv_ptr ->
allocaBytes #{size fd_set} $ \ readfds ->
Expand Down
2 changes: 1 addition & 1 deletion X11.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: X11
version: 1.10.3.10
version: 1.11
synopsis: A binding to the X11 graphics library
description: A Haskell binding to the X11 graphics library. The binding is a direct
translation of the C binding; for documentation of these calls, refer
Expand Down
Loading