浏览代码

fixed a bug reported by sander

Anselm R.Garbe 19 年之前
父节点
当前提交
5e9acbc952
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client.c

+ 1 - 1
client.c

@@ -296,7 +296,7 @@ resize(Client *c, Bool sizehints, Corner sticky)
 	if(c->x > sw) /* might happen on restart */
 		c->x = sw - c->w;
 	if(c->y > sh)
-		c->y = bottom - c->h;
+		c->y = sh - c->h;
 	if(sticky == TopRight || sticky == BotRight)
 		c->x = right - c->w;
 	if(sticky == BotLeft || sticky == BotRight)