Module Name: xsrc
Committed By: mlelstv
Date: Fri Jun 7 04:29:03 UTC 2019
Modified Files:
xsrc/external/mit/xdm/dist/greeter: Login.c
Log Message:
Respect the outer border width for sizing the widget horizontally.
Add it twice so that the greeting text can neither trash nor touch
the border.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 xsrc/external/mit/xdm/dist/greeter/Login.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xdm/dist/greeter/Login.c
diff -u xsrc/external/mit/xdm/dist/greeter/Login.c:1.3 xsrc/external/mit/xdm/dist/greeter/Login.c:1.4
--- xsrc/external/mit/xdm/dist/greeter/Login.c:1.3 Fri Jun 7 04:00:43 2019
+++ xsrc/external/mit/xdm/dist/greeter/Login.c Fri Jun 7 04:29:02 2019
@@ -345,7 +345,7 @@ XmuXftTextWidth(Display *dpy, XftFont *f
#define FAIL_W(w) max(ERROR_W(w, w->login.failMsg), \
ERROR_W(w, w->login.passwdChangeMsg))
-#define PAD_X(w) (2 * (PROMPT_X(w) + max (GREET_X_INC(w), FAIL_X_INC(w))))
+#define PAD_X(w) (2 * (PROMPT_X(w) + max (GREET_X_INC(w), FAIL_X_INC(w)) + 4*w->login.outframewidth))
#define PAD_Y(w) (max (max (Y_INC(w), GREET_Y_INC(w)),\
FAIL_Y_INC(w)))