chiark / gitweb /
dot/xinitrc: Don't assume that the first screen starts at (0, 0).
authorMark Wooding <mdw@distorted.org.uk>
Sat, 23 Apr 2016 10:35:50 +0000 (11:35 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 23 Apr 2016 10:35:50 +0000 (11:35 +0100)
It often will, but it's easy to place Emacs on it in the right place
anyway.

dot/xinitrc

index 81a7aaf44320f25ead82cf6b36c58a3d3334b5ca..9bf7a85d09346eb523c06d376ec4c479be545df8 100755 (executable)
@@ -286,7 +286,7 @@ declare -i \
 
 start-emacs () {
   GDK_NATIVE_WINDOWS=1 run bgclients noip \
-    $emacs -bg black -geometry ${emacsx}x${emacsy}+0+0
+    $emacs -bg black -geometry ${emacsx}x${emacsy}+${XSCR0_X}+${XSCR0_Y}
 }
 
 ## Now place some xterms.
@@ -302,7 +302,7 @@ start-emacs () {
 start-xterms () {
 
   ## Initialize some parameters.
-  declare -i x="ecols*e_colwd + e_hextra" xb=xbound
+  declare -i x="ecols*e_colwd + e_hextra + XSCR0_X" xb=xbound
   declare -i n=0 pgx=0 l h y ht scr=0 ll=lim
   declare -i hstd="35*t_lineht + t_vextra" hmin="25*t_lineht + t_vextra"
   declare -i scrx scry scrwd scrht