diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2015-12-24 18:34:04 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2015-12-24 18:34:04 +0100 |
commit | 6916a555c336938e1657cf5aad3059b4e4c59b7a (patch) | |
tree | 054f6a03e188f53cccafc90d7d100b26c7456e1a /greeter | |
parent | fe28bc4657b22102d1ce35837553846b8026e8a0 (diff) |
Remove X server ping code, only used for remote servers.
Diffstat (limited to 'greeter')
-rw-r--r-- | greeter/greet.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/greeter/greet.c b/greeter/greet.c index e82a904..ed20085 100644 --- a/greeter/greet.c +++ b/greeter/greet.c @@ -88,22 +88,7 @@ static char name[NAME_LEN], password[PASSWORD_LEN]; static Widget toplevel; static Widget login; static XtAppContext context; -static XtIntervalId pingTimeout; -/*ARGSUSED*/ -static void -GreetPingServer ( - XtPointer closure, - XtIntervalId *intervalId) -{ - struct display *d; - - d = (struct display *) closure; - if (!PingServer (d, XtDisplay (toplevel))) - SessionPingFailed (d); - pingTimeout = XtAppAddTimeOut (context, d->pingInterval * 60 * 1000, - GreetPingServer, (closure)); -} /*ARGSUSED*/ static void @@ -216,11 +201,6 @@ InitGreet (struct display *d) XWidthOfScreen(scrn) / 2, XHeightOfScreen(scrn) / 2); - if (d->pingInterval) - { - pingTimeout = XtAppAddTimeOut (context, d->pingInterval * 60 * 1000, - GreetPingServer, (XtPointer) d); - } return dpy; } @@ -231,11 +211,6 @@ CloseGreet (struct display *d) Arg arglist[1]; Display *dpy = XtDisplay(toplevel); - if (pingTimeout) - { - XtRemoveTimeOut (pingTimeout); - pingTimeout = 0; - } UnsecureDisplay (d, dpy); XtSetArg (arglist[0], XtNallowAccess, (char *) &allow); XtGetValues (login, arglist, 1); |