|
From: Dima K. <gn...@di...> - 2018-10-14 21:46:53
|
sfeam <sf...@us...> writes: > x11: In theory a terminal driver can see the window close event either > as a GE_keypress event with the 1st parameter set to GP_Cancel > or as a GE_reset event. x11 handled the first case but failed to > catch the second case. Patch below. Thank you very much. This patch fixes the bulk of the problem. There's still a small vestige of the previous incorrect behavior that maybe is unimportant, but I'll mention it anyway. 1. Run gnuplot 2. plot x 3. pause mouse close 4. 'q' in the popped-up terminal window. This gets us back to a "gnuplot>" prompt 5. If you start typing into THIS new prompt, you get a SECOND gnuplot> prompt to type into. Presumably the select() in the gnuplot process is still waiting for some data from the gnuplot_x11 helper that doesn't exist anymore Thanks again. |