2002-05-12 v 0.0.8: * mousecorner.c: abandoned freopen for stdin, stderr, stdout etc. swiping code from Unix Programming FAQ instead, and sending stderr to a logfile. will hopefully compile on Solaris again now. * actions.c: made trigger a parameter to update_counters(), so we can take it from command line * points.c: made range a parameter to is_corner() so we can take it from command line * mousecorner.c: added getopt code, and various command line options ( h help, v version, r, t, and s setting range, trigger and sleeptime respectively ) * mousecorner.1: updated man page for new options etc. 2002-05-09 v 0.0.7: * mousecorner.c: made proper use of exit and _exit as per Unix Programmers FAQ 1.1.3, listen also for SIGQUIT and SIGTERM 2002-05-09 v 0.0.6: * mousecorner.c: added code to make it a proper fork, setsid, fork, chdir and freopen daemon as described in the Unix Programmer's FAQ, 1.7 2002-05-07 v 0.0.6 * mousecorner-command: added alternative to killall for systems that don't have it. No auto-choosing of Right Thing yet though. 2002-05-06 v 0.0.5 * Makefile.am: inserted proper macros for X libraries so we compile on other things than Redhat. Doh. Also added man page. * mousecorner.1: wrote man page. 2002-05-06 v 0.0.4 * actions.c: generalised actions and removed hardwired XScreenSaver stuff. actions.c only knows about four corners now, and the actions are all calls to mousecorner-command * mousecorner-command: added 'tl', 'tr', 'bl', 'br' parameters, each of which triggers action. Here is now where calls to xscreensaver-command ( or whatever you like ) go. 2002-05-05 v 0.0.3 * points.c: made display global to this file, we now only connect once to XServer. * mousecorner.c: added call to atexit to disconnect nicely from XServer. 2002-05-05 v 0.0.2 * mousecorner-command: fixed silly bug where it always looked in '.' for mousecorner. now works properly. * mousecorner.c, mousecorner.h: broke up, leaving main in mousecorner.c, moving all points/X stuff to points.c, and all logic and action stuff to action.c * points.c: height and width of screen now accessed directly through disp rather than doing XGetWindowAttributes, also removed one of the dummy windows as unnecessary, so no call to XCreateSimpleWindow any more, and found that both root and child can be the same in XQueryPointer, so eliminated one dummy Window too. 2002-05-04 v 0.0.1 * everything: Initial proof-of-concept version, with configure script and mousecorner-command shell script