print inactivity time
add script to remove old at jobs
No problem with commenting out XUnloadFont(): I have tested it in the original xfig version, the one with XSync and the one with a modified main loop, an none showed any error. The original version still does not close in powersave mode, as expected. According to XCloseDisplay(3), the fonts are unloaded anyway on close (when no other program uses them) unless specified otherwise by XSetCloseDownMode(3), but this seems not to be called anywhere in xfig.
This is in part a related issue: free_Fonts() in u_free.c unloads fonts using nf->fid, but I do not see where this field is set. I tried to add canary values to every struct xfont right after every malloc(sizeof(struct xfont)), and it seems that they are still there when the fonts are freed by free_Fonts(); see attached file. Perhaps nf->fid is not needed after all, and one may rather use nf->fstruct->fid if nf->fstruct is not NULL? This is related to the ticket because I believe the error is not...
With XSync(tool_d, False) above free_GC() the xfig window closes properly every time now. Thanks!
You mean, xfig should stay open, but it vanishes under your eyes when doing something unrelated? No, I was still talking about the situation after I click on file, then exit. The window is still open, but it shouldn't. In this particular situation, "xwininfo -root" causes it it to close. This happens on debian. I will test the problem and the patch under archlinux.
Also: the window closes even if XSync() is replaced by sleep(2) (of course that's not a viable solution since termination is delayes by two seconds). Do you get the same errors with this change?
Could you confirm, that there is not a pop-up window, well, not popped up but hidden behind the window? If a figure is modified within xfig and not yet saved, on pressing File -> Exit a window pops up, "The current figure is modified. Do you want to save it before quitting?" That window may be hidden behind the main window. Hi, thanks for checking this. Iconifying the xfig window, the menu remains on screen but there is no confirmation window around. Also, the xfig program already terminated at this...