[hackers] [st] Fix the geometry handling. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sat, 13 Apr 2013 15:26:09 +0200

commit 44db38a5f8560564851683f80e1a649836e5885c
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat Apr 13 15:24:26 2013 +0200

    Fix the geometry handling.

diff --git a/st.1 b/st.1
index fc7703d..ab90908 100644
--- a/st.1
+++ b/st.1
_AT_@ -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
diff --git a/st.c b/st.c
index de3d045..d7d70e7 100644
--- a/st.c
+++ b/st.c
_AT_@ -3417,6 +3417,8 @@ run:
         xinit();
         ttynew();
         selinit();
+ if(xw.isfixed)
+ cresize(xw.h, xw.w);
         run();
 
         return 0;
Received on Sat Apr 13 2013 - 15:26:09 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 13 2013 - 15:36:09 CEST