]> code.delx.au - spectrwm/commit
Change bar_action handling to eliminate the need for bar_delay.
authorReginald Kennedy <rk@rejii.com>
Sun, 23 Sep 2012 10:33:23 +0000 (18:33 +0800)
committerReginald Kennedy <rk@rejii.com>
Sun, 23 Sep 2012 10:37:28 +0000 (18:37 +0800)
commitd3818f73f1a4d3c7c50bee72fa2897d22c07f8c1
treeb32eaa9f7a255aa45400487647e11581b53b5260
parent4f08514872203bb6297d6f076a7b0aacd73a79c2
Change bar_action handling to eliminate the need for bar_delay.
Old code called alarm() regularly and checked for input only at certain
times.  Now, the file descriptor for reading the text is added to the
select() in the main loop, and so updates are caught immediately and
efficiently.

Patch submitted by Jason Woofenden <jason@jasonwoof.com>

(Note: Minor modifications were made to formatting and a dummy version
of the bar_delay option was added to avoid breaking old conf files.)
spectrwm.1
spectrwm.c
spectrwm.conf
spectrwm_es.1
spectrwm_it.1
spectrwm_pt.1
spectrwm_ru.1