From 66a94c3322588e488112ab8e72519e84c84d464b Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 7 Jun 1996 23:45:30 +0000 Subject: [PATCH] Call XCloseDisplay, otherwise screen saver changes are not updated before closing the X connection. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@566 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/xnlock/xnlock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/appl/xnlock/xnlock.c b/appl/xnlock/xnlock.c index d00c22721..89e99c3a6 100644 --- a/appl/xnlock/xnlock.c +++ b/appl/xnlock/xnlock.c @@ -29,8 +29,6 @@ RCSID("$Id$"); #include "roken.h" -char *crypt(const char *, const char *); - char inst[100]; char name[100]; char realm[REALM_SZ + 1]; @@ -270,6 +268,7 @@ leave(void) XUngrabPointer(dpy, CurrentTime); XUngrabKeyboard(dpy, CurrentTime); ScreenSaver(0); + XCloseDisplay(dpy); zrefresh(); exit(0); }