client.c
changeset 313 8b109976c594
parent 311 099c595c53e6
child 314 8bafc3ac9f58
equal deleted inserted replaced
312:8373e295cb04 313:8b109976c594
   294 			c->h = c->maxh;
   294 			c->h = c->maxh;
   295 	}
   295 	}
   296 	if(c->x > sw) /* might happen on restart */
   296 	if(c->x > sw) /* might happen on restart */
   297 		c->x = sw - c->w;
   297 		c->x = sw - c->w;
   298 	if(c->y > sh)
   298 	if(c->y > sh)
   299 		c->y = bottom - c->h;
   299 		c->y = sh - c->h;
   300 	if(sticky == TopRight || sticky == BotRight)
   300 	if(sticky == TopRight || sticky == BotRight)
   301 		c->x = right - c->w;
   301 		c->x = right - c->w;
   302 	if(sticky == BotLeft || sticky == BotRight)
   302 	if(sticky == BotLeft || sticky == BotRight)
   303 		c->y = bottom - c->h;
   303 		c->y = bottom - c->h;
   304 
   304