diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-18 11:40:25 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-18 11:40:25 +0200 |
| commit | 7d156dee1e80f7d26aa0a31a6d2c75af06cbaa9a (patch) | |
| tree | f6f7cf2ae8f4b4d4ce374ffc245aafc2d440194b /tile.c | |
| parent | replaced static Layout *lt with static unsigned int sellayout... (will be ada... (diff) | |
| download | dwm-7d156dee1e80f7d26aa0a31a6d2c75af06cbaa9a.tar.gz dwm-7d156dee1e80f7d26aa0a31a6d2c75af06cbaa9a.zip | |
applied Gottox mwfact patch
Diffstat (limited to '')
| -rw-r--r-- | tile.c | 15 |
1 files changed, 7 insertions, 8 deletions
| @@ -10,7 +10,7 @@ static double mwfact = MWFACT; | |||
| 10 | 10 | ||
| 11 | void | 11 | void |
| 12 | setmwfact(const char *arg) { | 12 | setmwfact(const char *arg) { |
| 13 | double delta, newfact; | 13 | double delta; |
| 14 | 14 | ||
| 15 | if(!isarrange(tile)) | 15 | if(!isarrange(tile)) |
| 16 | return; | 16 | return; |
| @@ -19,14 +19,13 @@ setmwfact(const char *arg) { | |||
| 19 | mwfact = MWFACT; | 19 | mwfact = MWFACT; |
| 20 | else if(1 == sscanf(arg, "%lf", &delta)) { | 20 | else if(1 == sscanf(arg, "%lf", &delta)) { |
| 21 | if(arg[0] != '+' && arg[0] != '-') | 21 | if(arg[0] != '+' && arg[0] != '-') |
| 22 | newfact = delta; | 22 | mwfact = delta; |
| 23 | else | 23 | else |
| 24 | newfact = mwfact + delta; | 24 | mwfact += delta; |
| 25 | if(newfact < 0.1) | 25 | if(mwfact < 0.1) |
| 26 | newfact = 0.1; | 26 | mwfact = 0.1; |
| 27 | else if(newfact > 0.9) | 27 | else if(mwfact > 0.9) |
| 28 | newfact = 0.9; | 28 | mwfact = 0.9; |
| 29 | mwfact = newfact; | ||
| 30 | } | 29 | } |
| 31 | arrange(); | 30 | arrange(); |
| 32 | } | 31 | } |
