소스 검색

Fix the geometry handling.

Christoph Lohmann 12 년 전
부모
커밋
44db38a5f8
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      st.1
  2. 2 0
      st.c

+ 3 - 0
st.1

@@ -37,6 +37,9 @@ to use when st is run.
 .TP
 .BI \-g " geometry"
 defines the X11 geometry string, which will fixate the height and width of st. 
+The form is [=][<width>{xX}<height>][{+-}<xoffset>{+-}<yoffset>]. See
+.BR XParseGeometry (3)
+for further details.
 .TP
 .BI \-o " file"
 writes all the I/O to

+ 2 - 0
st.c

@@ -3417,6 +3417,8 @@ run:
 	xinit();
 	ttynew();
 	selinit();
+	if(xw.isfixed)
+		cresize(xw.h, xw.w);
 	run();
 
 	return 0;