chickadee » xinerama

xinerama

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

xinerama-query-extension displayprocedure
xinerama-query-versionprocedure
xinerama-active? displayprocedure
xinerama-query-screens displayprocedure
xinerama-screen-info? xprocedure
xinerama-screen-info-screen-number screen-infoprocedure
xinerama-screen-info-x-org screen-infoprocedure
xinerama-screen-info-y-org screen-infoprocedure
xinerama-screen-info-width screen-infoprocedure
xinerama-screen-info-height screen-infoprocedure

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

Contents »