restored y-coordinate fixing of client windows 5a92420f
Anselm R Garbe · 2008-06-17 09:57 1 file(s) · +2 −1
dwm.c +2 −1
913 913
		if(c->y + c->h + 2 * c->bw > sy + sh)
914 914
			c->y = sy + sh - c->h - 2 * c->bw;
915 915
		c->x = MAX(c->x, sx);
916 -
		c->y = MAX(c->y, by == 0 ? bh : sy);
916 +
		/* only fix client y-offset, if the client center might cover the bar */
917 +
		c->y = MAX(c->y, ((by == 0) && (c->x + (c->w / 2) >= wx) && (c->x + (c->w / 2) < wx + ww)) ? bh : sy);
917 918
		c->bw = borderpx;
918 919
	}
919 920