From 6916a555c336938e1657cf5aad3059b4e4c59b7a Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Thu, 24 Dec 2015 18:34:04 +0100 Subject: Remove X server ping code, only used for remote servers. --- greeter/greet.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'greeter') 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); -- cgit v1.2.3