summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2018-07-09 15:02:42 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:39 +0200
commite34bba1b8b14bd4a567c94c21deb817ad932a948 (patch)
tree4d993537de0293e7a1004b2dc3912af83bcc53d8
parentb96f930fc9c2d8ed94b33838fc540c941585991c (diff)
Source the Xsetup script before initializing the greeter widget.
Based on a request by weerd@, tested by jca@ and weerd@
-rw-r--r--greeter/greet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/greeter/greet.c b/greeter/greet.c
index dfd0687..51dec78 100644
--- a/greeter/greet.c
+++ b/greeter/greet.c
@@ -301,13 +301,13 @@ greet_user_rtn GreetUser(
Arg arglist[2];
Display *dpy;
- dpy = InitGreet (d);
/*
* Run the setup script - note this usually will not work when
* the server is grabbed, so we don't even bother trying.
*/
if (!d->grabServer)
SetupDisplay (d);
+ dpy = InitGreet (d);
if (!dpy) {
LogError ("Cannot reopen display %s for greet window\n", d->name);
exit (RESERVER_DISPLAY);