xinerama

  1. xinerama
  2. Description
  3. Authors
  4. Requirements
    1. Chicken Eggs
    2. C Headers
  5. API
  6. Examples
  7. License
  8. Version History

Description

Basic bindings for Xinerama.

For bug reports, feature requests, and development versions, visit the github project page.

Authors

Requirements

Chicken Eggs

C Headers

API

[procedure] (xinerama-query-extension display) => (event-base error-base) or #f
[procedure] (xinerama-query-version) => (major minor) or #f
[procedure] (xinerama-active? display) => bool
[procedure] (xinerama-query-screens display) => (xinerama-screen-info ...)
[procedure] (xinerama-screen-info? x) => bool
[procedure] (xinerama-screen-info-screen-number screen-info) => int
[procedure] (xinerama-screen-info-x-org screen-info) => int
[procedure] (xinerama-screen-info-y-org screen-info) => int
[procedure] (xinerama-screen-info-width screen-info) => int
[procedure] (xinerama-screen-info-height screen-info) => int

Examples

(use xinerama xlib)
(define xdisplay (xopendisplay #f))
(when (xinerama-active? xdisplay)
  (for-each
   (lambda (screen)
    (printf "~A ~A ~A ~A ~A~%"
            (xinerama-screen-info-screen-number screen)
            (xinerama-screen-info-x-org screen)
            (xinerama-screen-info-y-org screen)
            (xinerama-screen-info-width screen)
            (xinerama-screen-info-height screen)))
   (xinerama-query-screens xdisplay)))

License

BSD

Version History