From fa415e3123f981b8630f57a7ade1a93b7bbb4a0e Mon Sep 17 00:00:00 2001 From: gotmor Date: Thu, 7 Jun 2007 12:09:36 +0000 Subject: adapted hide/unhide actions to the horizontal menu mode restructered x_create_windows() git-svn-id: http://dzen.googlecode.com/svn/trunk@70 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- action.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'action.c') diff --git a/action.c b/action.c index 7adbcca..b6cf852 100644 --- a/action.c +++ b/action.c @@ -97,7 +97,7 @@ free_ev_table(void) { } } - void +void fill_ev_table(char *input) { char *str1, *str2, *str3, *str4, @@ -284,7 +284,11 @@ a_scrolldown(char * opt[]) { int a_hide(char * opt[]) { if(!dzen.title_win.ishidden) { - XResizeWindow(dzen.dpy, dzen.title_win.win, dzen.title_win.width, 1); + if(!dzen.slave_win.ishmenu) + XResizeWindow(dzen.dpy, dzen.title_win.win, dzen.title_win.width, 1); + else + XResizeWindow(dzen.dpy, dzen.slave_win.win, dzen.title_win.width, 1); + dzen.title_win.ishidden = True; } return 0; @@ -293,7 +297,11 @@ a_hide(char * opt[]) { int a_unhide(char * opt[]) { if(dzen.title_win.ishidden) { - XResizeWindow(dzen.dpy, dzen.title_win.win, dzen.title_win.width, dzen.line_height); + if(!dzen.slave_win.ishmenu) + XResizeWindow(dzen.dpy, dzen.title_win.win, dzen.title_win.width, dzen.line_height); + else + XResizeWindow(dzen.dpy, dzen.slave_win.win, dzen.title_win.width, dzen.line_height); + dzen.title_win.ishidden = False; } return 0; -- cgit v1.2.3-54-g00ecf