forked from speedie/spmenu
better if a key doesn't have to be pressed
This commit is contained in:
parent
5872c638f3
commit
445351c09a
18
libs/event.c
18
libs/event.c
|
@ -32,15 +32,6 @@ void eventloop(void) {
|
||||||
grabfocus();
|
grabfocus();
|
||||||
break;
|
break;
|
||||||
case KeyPress: // read key array and call functions
|
case KeyPress: // read key array and call functions
|
||||||
if (listfile) {
|
|
||||||
readfile();
|
|
||||||
|
|
||||||
if (listchanged) {
|
|
||||||
match();
|
|
||||||
drawmenu();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (incremental) {
|
if (incremental) {
|
||||||
puts(text);
|
puts(text);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
@ -62,6 +53,15 @@ void eventloop(void) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (listfile) {
|
||||||
|
readfile();
|
||||||
|
|
||||||
|
if (listchanged) {
|
||||||
|
match();
|
||||||
|
drawmenu();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// redraw image on X11 event
|
// redraw image on X11 event
|
||||||
#if USEIMAGE
|
#if USEIMAGE
|
||||||
if (!noimg) {
|
if (!noimg) {
|
||||||
|
|
Loading…
Reference in a new issue