aboutsummaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-02 14:56:17 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-06-02 14:56:17 +0000
commit6b237601c294d3a6df3ba005cb87c3fc616bd0be (patch)
treef12b4e776eb3accd567170e064f2087ee2fff7ee /action.c
parent0ecdafacd613deb0da6088665f27fa4df184beae (diff)
downloaddzen-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.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/action.c b/action.c
index ad00d10..c269486 100644
--- a/action.c
+++ b/action.c
@@ -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;
+}
+