BSD-3-Clause licensed
Maintained by Daniel Wagner
This version can be pinned in stack with:X11-1.10.3@sha256:0d1dfe1034a3bbed5cd5657b7d825b07e4a01d6efe75e118e082f5650a46af00,3869

Module documentation for 1.10.3

  • Graphics
    • Graphics.X11
      • Graphics.X11.ExtraTypes
        • Graphics.X11.ExtraTypes.AP
        • Graphics.X11.ExtraTypes.DEC
        • Graphics.X11.ExtraTypes.HP
        • Graphics.X11.ExtraTypes.Sun
        • Graphics.X11.ExtraTypes.XF86
        • Graphics.X11.ExtraTypes.XorgDefault
      • Graphics.X11.Types
      • Graphics.X11.XScreenSaver
      • Graphics.X11.Xinerama
      • Graphics.X11.Xlib
        • Graphics.X11.Xlib.Atom
        • Graphics.X11.Xlib.Color
        • Graphics.X11.Xlib.Context
        • Graphics.X11.Xlib.Cursor
        • Graphics.X11.Xlib.Display
        • Graphics.X11.Xlib.Event
        • Graphics.X11.Xlib.Extras
        • Graphics.X11.Xlib.Font
        • Graphics.X11.Xlib.Image
        • Graphics.X11.Xlib.Misc
        • Graphics.X11.Xlib.Region
        • Graphics.X11.Xlib.Screen
        • Graphics.X11.Xlib.Types
        • Graphics.X11.Xlib.Window
      • Graphics.X11.Xrandr

Haskell binding to the X11 graphics library Hackage Build Status

To build this package using Cabal directly from Git, you must run autoreconf before the usual Cabal build steps (configure/build/install). autoreconf is included in the GNU autoconf tools. There is no need to run the configure script: the cabal configure step will do this for you.

If you are building from a source tarball, you can just use the standard Cabal installation stanza:

cabal configure
cabal build
cabal install

Xinerama support is enabled by default if Xinerama headers are detected. To disable Xinerama support, add the --without-xinerama flag to configure-option:

cabal configure --configure-option="--without-xinerama"

However, if you are building from Git, X11 uses autoconf, so you need to have autoconf installed and run autoconf/autoheader before building:

autoconf
autoheader

or

autoreconf

You will need development versions of at least the X11, xrandr, and XScreenSaver libraries installed for the build to succeed; having the development version of the Xinerama library will enable some optional bindings.

Changes

Change Log / Release Notes

1.10.3 (2022-09-14)

  • Added cWX, cWY, cWWidth, cWHeight constants (AttributeMask) (#82)

  • Added FocusChangeEvent to data Event (#81)

  • Added setWMNormalHints (#83)

1.10.2 (2021-10-24)

  • Restored compatibility with GHC 7.10 (and possibly even older) (#80)

1.10.1 (2021-08-15)

  • Fixed possible high CPU usage of some blocking calls with the threaded RTS (#78)

1.10 (2021-05-31)

  • Added setClientMessageEvent' (#71)

  • Fixed type of xrrUpdateConfiguration (#72)

  • Fixed bottom when deserializing XRRNotifyEvent in getEvent (#72)

  • Added xrrGetMonitors and XRRMonitorInfo (#42)

  • Added setClassHint (#76)

  • Added a few missing event mask fields to WindowAttributes (#77)

1.9.2 (2020-08-25)

  • Make sure that X11 search paths determined by autoconf are actually passed through to Cabal. The fix was contributed by Greg Steuck (#53, #69).

  • Locate the include statement for HsAllKeysyms.h above the relevant ifdefs to avoid issues during cross compilation. The fix was contributed by Vanessa McHale (#65)

1.8 (February 9, 2017)

  • Added deleteProperty

  • Add SelectionClear event to xlib Extra