aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-01 22:11:43 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-07-01 22:11:43 +0000
commit445d958902177390320e2d5bc384e7fb47afdeaf (patch)
tree09369fca3c788eef89684b62f53b7d5055fc375a /main.c
parente1c6a8acab10f0c21f42e739598fd4af913d00a7 (diff)
downloaddzen-445d958902177390320e2d5bc384e7fb47afdeaf.tar.gz
dzen-445d958902177390320e2d5bc384e7fb47afdeaf.zip
added "onnewinput" event
git-svn-id: http://dzen.googlecode.com/svn/trunk@117 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 25ee5fe..6b7ceff 100644
--- a/main.c
+++ b/main.c
@@ -515,7 +515,10 @@ static void
handle_newl(void) {
XWindowAttributes wa;
+
if(dzen.slave_win.max_lines && (dzen.slave_win.tcnt > last_cnt)) {
+ do_action(onnewinput);
+
if (XGetWindowAttributes(dzen.dpy, dzen.slave_win.win, &wa),
wa.map_state != IsUnmapped
/* autoscroll and redraw only if we're