aboutsummaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
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[]) {