diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-05-19 17:23:49 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-05-19 17:23:49 +0100 |
| commit | 234b12eb73f5c6de3da4eb93cac2159e73647529 (patch) | |
| tree | 326b0232bb552ae90ed3ecfb526c64151ffa2f0c | |
| parent | fixed comment (diff) | |
| download | dwm-234b12eb73f5c6de3da4eb93cac2159e73647529.tar.gz dwm-234b12eb73f5c6de3da4eb93cac2159e73647529.zip | |
be more polite to clients which like to appear outside the window area, but still on the screen
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -958,12 +958,12 @@ manage(Window w, XWindowAttributes *wa) { | |||
| 958 | c->bw = wa->border_width; | 958 | c->bw = wa->border_width; |
| 959 | } | 959 | } |
| 960 | else { | 960 | else { |
| 961 | if(c->x + c->w + 2 * c->bw > wx + ww) | 961 | if(c->x + c->w + 2 * c->bw > sx + sw) |
| 962 | c->x = wx + ww - c->w - 2 * c->bw; | 962 | c->x = sx + sw - c->w - 2 * c->bw; |
| 963 | if(c->y + c->h + 2 * c->bw > wy + wh) | 963 | if(c->y + c->h + 2 * c->bw > sy + sh) |
| 964 | c->y = wy + wh - c->h - 2 * c->bw; | 964 | c->y = sy + sh - c->h - 2 * c->bw; |
| 965 | c->x = MAX(c->x, wx); | 965 | c->x = MAX(c->x, sx); |
| 966 | c->y = MAX(c->y, wy); | 966 | c->y = MAX(c->y, sy); |
| 967 | c->bw = borderpx; | 967 | c->bw = borderpx; |
| 968 | } | 968 | } |
| 969 | 969 | ||
