diff options
| author | Noam Postavsky | 2018-03-29 19:11:47 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2018-03-29 19:11:47 -0400 |
| commit | 2a192e21cf3b04b7f830b4971c1508c611e13a3c (patch) | |
| tree | 8ee3c9cb68037073a765ad70f24299a04bef3ad1 /src | |
| parent | c213f465ba8038ce93314b96fd53ec3e35d34609 (diff) | |
| download | emacs-2a192e21cf3b04b7f830b4971c1508c611e13a3c.tar.gz emacs-2a192e21cf3b04b7f830b4971c1508c611e13a3c.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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 0fcd7ef7e2b..f8ac23e53b9 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -11551,7 +11551,8 @@ x_make_frame_visible (struct frame *f) | |||
| 11551 | poll_for_input_1 (); | 11551 | poll_for_input_1 (); |
| 11552 | poll_suppress_count = old_poll_suppress_count; | 11552 | poll_suppress_count = old_poll_suppress_count; |
| 11553 | #endif | 11553 | #endif |
| 11554 | x_wait_for_event (f, MapNotify); | 11554 | if (FRAME_VISIBLE_P (f)) |
| 11555 | x_wait_for_event (f, MapNotify); | ||
| 11555 | } | 11556 | } |
| 11556 | } | 11557 | } |
| 11557 | 11558 | ||