use select to tell when there are events to read
-rw-r--r-- 13 .gitignore
-rw-r--r-- 377 Makefile
-rw-r--r-- 4472 dcompmgr.c
-rw-r--r-- 9895 display.c
-rw-r--r-- 1916 display.h
-rw-r--r-- 91 gettext.h
-rw-r--r-- 3020 list.c
-rw-r--r-- 903 list.h
-rw-r--r-- 6700 screen.c
-rw-r--r-- 1061 screen.h
-rw-r--r-- 1203 window.c
-rw-r--r-- 538 window.h