Skip to content

bogdan-the-great/xlib

Repository files navigation

xlib

Most of them are from Guy Keren's "Basic Graphics Programming With The Xlib Library".

simple-drawing.c

simple-drawing

events.c

events

simple-text.c

simple-text

simple-wm-hints.c

Integrates well with dwm, but I don't have patch allowing me to display icons. On Qtile it doesn't show icon either.

simple-wm-hints

window-operations.c

It moves around!

color-drawing.c

color-drawing

draw-pixmap.c

It needs to be .xbm (I exported it from GIMP)

draw-pixmap

cursor.c

Changes cursor to icon.xbm

Compile and run

gcc -g -o out simple-drawing.c -lX11 && ./out

Don't see any need for a Makefile.

About

Examples of using the Xlib library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages