]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't wait for visible frames to become visible
authorNoam Postavsky <npostavs@gmail.com>
Thu, 29 Mar 2018 23:11:47 +0000 (19:11 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 29 Mar 2018 23:11:47 +0000 (19:11 -0400)
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.

src/xterm.c

index 0fcd7ef7e2b2a9578424d037cbbe16e421732e8c..f8ac23e53b92aa78f9be72a957df2deb9f4d2b8f 100644 (file)
@@ -11551,7 +11551,8 @@ x_make_frame_visible (struct frame *f)
     poll_for_input_1 ();
     poll_suppress_count = old_poll_suppress_count;
 #endif
-    x_wait_for_event (f, MapNotify);
+    if (FRAME_VISIBLE_P (f))
+      x_wait_for_event (f, MapNotify);
   }
 }