aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNoam Postavsky2018-03-29 19:11:47 -0400
committerNoam Postavsky2018-06-03 12:48:13 -0400
commit71192e0b7eabadf2eb1fdd7f11cb391bbc34c560 (patch)
tree2801937f152fa14cf02871a0f66b6a5296123520 /src
parent5fa73a7d98040f749f4cd45cfa40cf3c1c8cc2e3 (diff)
downloademacs-71192e0b7eabadf2eb1fdd7f11cb391bbc34c560.tar.gz
emacs-71192e0b7eabadf2eb1fdd7f11cb391bbc34c560.zip
Don't wait for visible frames to become visible
For discussion, see thread starting at https://lists.gnu.org/archive/html/emacs-devel/2018-03/msg00807.html. * src/xterm.c (x_make_frame_visible): Check FRAME_VISIBLE_P before calling x_wait_for_event. (cherry picked from commits 2a192e21cf3b04b7f830b4971c1508c611e13a3c and 00c1f771f2a51ffa675ec5a07ea330f2605cd302)
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index f6f2079ec69..496effaf42a 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -11548,7 +11548,8 @@ x_make_frame_visible (struct frame *f)
11548 poll_for_input_1 (); 11548 poll_for_input_1 ();
11549 poll_suppress_count = old_poll_suppress_count; 11549 poll_suppress_count = old_poll_suppress_count;
11550#endif 11550#endif
11551 x_wait_for_event (f, MapNotify); 11551 if (! FRAME_VISIBLE_P (f))
11552 x_wait_for_event (f, MapNotify);
11552 } 11553 }
11553} 11554}
11554 11555