Comments (8)
It looks like the original author of the X11 package assumed struct timeval
contains 32-bit quantities, but they're actually 64 bits. This means the upper bits can contain garbage.
from x11.
Notably, it looks to me like the lower 32 bits of tv_sec
are 0 as expected, but the upper 32 bits aren't.
from x11.
You'll want to depend on X11 ^>= 1.10.3.10
, although that version isn't on Hackage yet so you'll have to vendor it for now.
from x11.
The complication here is we may still need to support platforms where tv_sec
is time_t
(32 bits). Not sure how we deal with this, especially when we can't rely on it using glibc (we still have NetBSD users, I think). Probably something in hsc2hs
?
from x11.
There's probably something we can #if on?
(too sick to open a computer so not looking into it any further now, sorry)
from x11.
I'm not finding anything portable, aside from doing it in configure
. But, it seems the unix
package assumes it's CLong
, so we might as well do so too.
from x11.
Okay, in the interests of not forcing a PVP break, I left waitForEvent
with the same type; but it should at some point change to either Word64
or CLong
.
from x11.
We are following PVP? :)
from x11.
Related Issues (20)
- How to fix this HOT 2
- createFontSet broken with libX11-1.6.4 HOT 6
- Create "safe" functions that return `Maybe a` instead of throwing an exception HOT 35
- rawGetWindowProperty should perhaps return an array instead of a list HOT 3
- Cabal build does not actually use the library search paths that Autoconf has found HOT 11
- Uninitialized memory access in queryTree HOT 2
- XScreenSaver module API depends on build environment HOT 7
- CI fails because the lack of xrandr HOT 1
- Shouldn't openDisplay take a Maybe String instead of a String? HOT 3
- Graphics.X11.Types could include Thai etc. keybindings HOT 3
- New release needed to support ghc 8.8.1 HOT 4
- Tag for release 1.9 is missing
- Switch from data-default to data-default-class
- Hackage documentation is broken because of build error HOT 2
- Build from git fails with cabal new-build HOT 3
- Incorrect documentation in README HOT 1
- Why does getWindowProperty32 return IO (Maybe [CLong]) HOT 2
- Installation fails with GHC < 8 HOT 8
- Phoneinfo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x11.