# HG changeset patch # User Richard M. Stallman # Date 797499136 0 # Node ID e366abc2c753f6f7fc66f5965d8bd156773c5384 # Parent 5c1f15a662e5b0e8e3370d4be7c7d077bea32271 (XTread_socket): Make deiconify event only if frame was iconified. diff -r 5c1f15a662e5 -r e366abc2c753 src/xterm.c --- a/src/xterm.c Mon Apr 10 07:25:46 1995 +0000 +++ b/src/xterm.c Mon Apr 10 07:32:16 1995 +0000 @@ -3515,11 +3515,14 @@ the frame's display structures. */ SET_FRAME_GARBAGED (f); - bufp->kind = deiconify_event; - XSETFRAME (bufp->frame_or_window, f); - bufp++; - count++; - numchars--; + if (f->iconified) + { + bufp->kind = deiconify_event; + XSETFRAME (bufp->frame_or_window, f); + bufp++; + count++; + numchars--; + } } #ifdef USE_X_TOOLKIT goto OTHER;