# HG changeset patch # User Rob Flynn # Date 972560756 0 # Node ID a375efb2884e5932a4719d937b1ab3a1e726e688 # Parent 5bad25457843d2680a469c70829e112fc84b46e6 [gaim-migrate @ 1037] bmiller is a big ol dummy. Yeah thats right, you herd me! :-D Actually, bro, you opened the X Display but never closed it. Sooo, unfortunately, after a certain amount of time you're no longer able to open any X Applications. This should fix it :) Cheers, Rob committer: Tailor Script diff -r 5bad25457843 -r a375efb2884e src/idle.c --- a/src/idle.c Thu Oct 26 07:22:32 2000 +0000 +++ b/src/idle.c Thu Oct 26 11:45:56 2000 +0000 @@ -42,7 +42,7 @@ time_t t; #ifdef USE_SCREENSAVER static XScreenSaverInfo *mit_info = NULL; - Display *d = XOpenDisplay((char*)NULL); + Display *d; time_t idle_time; #endif @@ -64,11 +64,13 @@ #ifdef USE_SCREENSAVER if (report_idle == IDLE_SCREENSAVER) { + d = XOpenDisplay((char *)NULL); if (mit_info == NULL) { mit_info = XScreenSaverAllocInfo (); } XScreenSaverQueryInfo (d, DefaultRootWindow(d), mit_info); idle_time = (mit_info->idle)/1000; + XCloseDisplay(d); } else #endif /* USE_SCREENSAVER */ idle_time = t - gc->lastsent;