We investigate the water-waves problem in a bounded two-dimensional corner domain with surface tension and gravity. The local well-posedness is proved when the contact angles lie in $(0, \pi/2)$. The theory of singularity decompositions for related elliptic systems and some interesting analysis for the water-waves problem will be introduced and discussed in this talk.