diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-07 12:09:36 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-06-07 12:09:36 +0000 |
commit | fa415e3123f981b8630f57a7ade1a93b7bbb4a0e (patch) | |
tree | 4cceab973c7576fbec3ea05999cbb26882cddace /action.c | |
parent | a237f4044e45c0182aa5311564aaf73537c628b9 (diff) | |
download | dzen-fa415e3123f981b8630f57a7ade1a93b7bbb4a0e.tar.gz dzen-fa415e3123f981b8630f57a7ade1a93b7bbb4a0e.zip |
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
Diffstat (limited to 'action.c')
-rw-r--r-- | action.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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; |