diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-02 14:56:17 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-02 14:56:17 +0000 |
commit | 6b237601c294d3a6df3ba005cb87c3fc616bd0be (patch) | |
tree | f12b4e776eb3accd567170e064f2087ee2fff7ee /action.c | |
parent | 0ecdafacd613deb0da6088665f27fa4df184beae (diff) | |
download | dzen-6b237601c294d3a6df3ba005cb87c3fc616bd0be.tar.gz dzen-6b237601c294d3a6df3ba005cb87c3fc616bd0be.zip |
a_showhead added
git-svn-id: http://dzen.googlecode.com/svn/trunk@46 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -48,6 +48,7 @@ struct action_lookup ac_lookup_table[] = { { "menuexec", a_menuexec}, { "raise", a_raise}, { "lower", a_lower}, + { "showhead", a_showhead}, { 0, 0 } }; @@ -332,3 +333,14 @@ a_lower(char * opt[]) { XLowerWindow(dzen.dpy, dzen.slave_win.win); return 0; } + +int +a_showhead(char * opt[]) { + if(dzen.slave_win.max_lines) { + dzen.slave_win.first_line_vis = 0; + dzen.slave_win.last_line_vis = dzen.slave_win.max_lines; + } + x_draw_body(); + return 0; +} + |