aboutsummaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-05-09 17:43:16 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-05-09 17:43:16 +0000
commitc39f3f6e2cf3623306b7df4ab5a670329d4c4e45 (patch)
tree4c19849ecced0dce228c1e33e64637c3da38cab6 /action.c
parent686d65dbd94f6b23c4422ed0cfdc2f9d73574825 (diff)
downloaddzen-c39f3f6e2cf3623306b7df4ab5a670329d4c4e45.tar.gz
dzen-c39f3f6e2cf3623306b7df4ab5a670329d4c4e45.zip
added onstart, onquit events
git-svn-id: http://dzen.googlecode.com/svn/trunk@12 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'action.c')
-rw-r--r--action.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/action.c b/action.c
index 0a65837..c0e090d 100644
--- a/action.c
+++ b/action.c
@@ -9,9 +9,12 @@
#include <stdlib.h>
#include <string.h>
+
struct event_lookup ev_lookup_table[] = {
{ "exposet", exposetitle},
{ "exposes", exposeslave},
+ { "onstart", onstart},
+ { "onquit", onquit},
{ "button1", button1},
{ "button2", button2},
{ "button3", button3},
@@ -273,6 +276,7 @@ a_scrolldown(char * opt[]) {
return 0;
}
+/*
int
a_hide(char * opt[]) {
if(dzen.title_win.autohide && !dzen.title_win.ishidden) {
@@ -290,6 +294,24 @@ a_unhide(char * opt[]) {
}
return 0;
}
+*/
+int
+a_hide(char * opt[]) {
+ if(!dzen.title_win.ishidden) {
+ XResizeWindow(dzen.dpy, dzen.title_win.win, dzen.title_win.width, 1);
+ dzen.title_win.ishidden = True;
+ }
+ return 0;
+}
+
+int
+a_unhide(char * opt[]) {
+ if(dzen.title_win.ishidden) {
+ XResizeWindow(dzen.dpy, dzen.title_win.win, dzen.title_win.width, dzen.mh);
+ dzen.title_win.ishidden = False;
+ }
+ return 0;
+}
int
a_exec(char * opt[]) {