From: Mark Wooding Date: Sat, 13 Dec 2008 02:07:19 +0000 (+0000) Subject: xinitrc: Don't clobber xbound in start-xterms. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/6b4faba6009bfe03661d5dc77c7580e74918ddd4?ds=inline xinitrc: Don't clobber xbound in start-xterms. It makes requesting recreation of the terminals put them in the wrong place. --- diff --git a/xinitrc b/xinitrc index 588dac6..1d3a83c 100755 --- a/xinitrc +++ b/xinitrc @@ -208,7 +208,7 @@ start-emacs () { start-xterms () { ## Initialize some parameters. - declare -i x="ecols * e_colwd + e_hextra" + declare -i x="ecols * e_colwd + e_hextra" xb=xbound declare -i n=0 pgx=0 l h y ht declare -i hstd="35 * t_lineht + t_vextra" hmin="25 * t_lineht + t_vextra" @@ -216,9 +216,9 @@ start-xterms () { while :; do ## Start a new iteration. - if ((x + t_wd > xbound)); then + if ((x + t_wd > xb)); then if ((n >= 3)); then break; fi - x="pgx + XWIDTH" pgx="pgx + XWIDTH" xbound="xbound + XWIDTH" + x="pgx + XWIDTH" pgx="pgx + XWIDTH" xb="xb + XWIDTH" fi ## Make large xterms.