diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-08-14 13:51:10 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-08-14 13:51:10 +0000 |
commit | 8637be0fdc4e67434d76fed1ca65e54bb92ddb41 (patch) | |
tree | 1d88643b3b2c241d6457f0409abea13c4a3a59fc /main.c | |
parent | c6884614e88d1f194f4572711b2493a6da6561c4 (diff) | |
download | dzen-8637be0fdc4e67434d76fed1ca65e54bb92ddb41.tar.gz dzen-8637be0fdc4e67434d76fed1ca65e54bb92ddb41.zip |
added XPM icons support
drawing enhancement and fixes
added command line option '-h' to set the line height
git-svn-id: http://dzen.googlecode.com/svn/trunk@153 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -239,7 +239,8 @@ x_check_geometry(XRectangle si) { if(dzen.slave_win.x + dzen.slave_win.width > si.x + si.width) dzen.slave_win.x = si.x + (si.width - dzen.slave_win.width); } - dzen.line_height = dzen.font.height + 2; + if(!dzen.line_height) + dzen.line_height = dzen.font.height + 2; if (dzen.title_win.y + dzen.line_height > si.y + si.height) dzen.title_win.y = 0; @@ -693,6 +694,7 @@ main(int argc, char *argv[]) { dzen.running = True; dzen.xinescreen = 0; dzen.tsupdate = 0; + dzen.line_height = 0; /* cmdline args */ for(i = 1; i < argc; i++) @@ -747,6 +749,9 @@ main(int argc, char *argv[]) { else if(!strncmp(argv[i], "-w", 3)) { if(++i < argc) dzen.slave_win.width = atoi(argv[i]); } + else if(!strncmp(argv[i], "-h", 3)) { + if(++i < argc) dzen.line_height= atoi(argv[i]); + } else if(!strncmp(argv[i], "-tw", 4)) { if(++i < argc) dzen.title_win.width = atoi(argv[i]); } |