Improvement: Wait infinitely for events when idling

Wait infinitely for events when idling, instead of always calling
paint_preprocess(), to reduce CPU usage in the case. Thanks to valr for
help.
This commit is contained in:
Richard Grenville
2012-09-29 22:53:57 +08:00
parent 5a3dfbc064
commit 8d7d6405b6
2 changed files with 19 additions and 2 deletions

View File

@ -321,6 +321,7 @@ typedef enum {
extern int root_height, root_width;
extern Atom atom_client_attr;
extern Bool idling;
/**
* Functions