Mercurial > pidgin
changeset 1027:a375efb2884e
[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 <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Thu, 26 Oct 2000 11:45:56 +0000 |
parents | 5bad25457843 |
children | e4147c8604cc |
files | src/idle.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;