summaryrefslogtreecommitdiff
path: root/greeter
diff options
context:
space:
mode:
Diffstat (limited to 'greeter')
-rw-r--r--greeter/greet.c25
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);