Outdated egg!
This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for the CHICKEN 5 version of this egg, if it exists.
If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.
xlib-utils
TOC »
Description
Grab-bag of utilities for use with the xlib egg. This includes a set of procedures for working with X properties, events, and EWMH desktops, as well as a datatype called xcontext, which is a way to package up a display, a screen, a xinerama-screen, and a window into a single convenient record.
For bug reports, feature requests, and development versions, visit the bitbucket project page.
Authors
- John J Foerch
Requirements
Chicken Eggs
- foreigners
- matchable
- miscmacros
- xinerama
- xlib
C Headers
- Xlib.h
API
xcontext
- make-xcontextprocedure
- make-xcontext #!rest keywordsprocedure
- make-xcontext xc #!rest keywordsprocedure
- xcontext? xcprocedure
- xcontext-display xcprocedure
- xcontext-screen xcprocedure
- xcontext-xinerama-screen xcprocedure
- xcontext-window xcprocedure
- xcontext-root xcprocedure
- xcontext-data xcprocedure
- xcontext-data-set! xc objectprocedure
- (with-xcontext xc (field...) body...) => body...procedure
events
- add-event-handler! xc event-type mask handler guardprocedure
- handle-event event xcsprocedure
- xclientmessageevent-data-b eventprocedure
- xclientmessageevent-data-s eventprocedure
- xclientmessageevent-data-l eventprocedure
screens
- screen-or-xinerama-screen-height xcprocedure
- screen-or-xinerama-screen-width xcprocedure
- screen-or-xinerama-screen-left xcprocedure
- screen-or-xinerama-screen-top xcprocedure
properties
- window-property-typeprocedure
- window-property-formatprocedure
- window-property-dataprocedure
- window-property-countprocedure
- make-atom-property xc atom-nameprocedure
- make-number-property numberprocedure
- make-numbers-property numbersprocedure
- make-text-property textprocedure
- window-property-set xc key valueprocedure
- window-property-append xc key valueprocedure
- window-get-string-property display window propertyprocedure
- window-get-string-property* xc propertyprocedure
- set-wm-protocols xc symsprocedure
- active-window-title xcprocedure
desktops
- number-of-desktops xcprocedure
- desktop-names xcprocedure
- switch-to-desktop xc desktop-nameprocedure
Examples
License
BSD
Version History
- 0.1 (2015-07-26) utils for properties and desktops
- 0.2 (2015-07-30) xcontext introduced
- 0.3 (2015-08-02) with-xcontext root, active-window-title, set-wm-protocols
- 0.4 (2015-08-03) xcontext-data, xcontext-event-handlers
- 0.4.1 (2015-08-15) clientmessage-l0
- 0.4.2 (2015-08-15) general event data unpacking
- 0.4.3 (2015-11-12) window-get-string-property, window-get-string-property*, number-of-desktops, desktop-names, misc fixes
- 0.5.0 (2017-06-05) xinerama support