diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-05-06 05:15:26 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-05-06 05:15:26 -0400 |
commit | 261fc5698fb494b466ce35b0150a2f52c964d8a4 (patch) | |
tree | db03fa0bb99f02606bbb33b5894ce126ad718443 /src/window-xlib.h | |
parent | 626525986b0a55c2ed1d72e8f76a49b31efabd52 (diff) | |
download | runes-261fc5698fb494b466ce35b0150a2f52c964d8a4.tar.gz runes-261fc5698fb494b466ce35b0150a2f52c964d8a4.zip |
rate limit redraws
Diffstat (limited to 'src/window-xlib.h')
-rw-r--r-- | src/window-xlib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window-xlib.h b/src/window-xlib.h index 4a49340..d8e04f2 100644 --- a/src/window-xlib.h +++ b/src/window-xlib.h @@ -2,6 +2,7 @@ #define _RUNES_XLIB_H #include <cairo.h> +#include <time.h> #include <X11/Xlib.h> enum runes_atoms { @@ -27,12 +28,14 @@ struct runes_window { XEvent event; char *selection_contents; size_t selection_len; + struct timespec last_redraw; cairo_t *backend_cr; Atom atoms[RUNES_NUM_ATOMS]; char visual_bell_is_ringing: 1; + char delaying: 1; }; void runes_window_backend_create_window(RunesTerm *t, int argc, char *argv[]); |