Bring back the busy wait after x_make_frame_visible (Bug#25521)
commite1f6e3127a292e6ba66d27c49ddda4fe949569f5
authorNoam Postavsky <npostavs@gmail.com>
Thu, 31 Aug 2017 03:12:22 +0000 (30 23:12 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 29 Sep 2017 22:40:06 +0000 (29 18:40 -0400)
treedb6e5880027257ae04a6655a0b619a4b9efb51d4
parentbccf635217b0ba887d95b429f7d5d6903007a7b1
Bring back the busy wait after x_make_frame_visible (Bug#25521)

But wait specfically for a MapNotify event, and only for a
configurable amount of time.
* src/xterm.c (syms_of_xterm) [x-wait-for-event-timeout]: New
variable.
(x_wait_for_event): Use it instead of hardcoding the wait to 0.1s.
(x_make_frame_visible): Call x_wait_for_event at the end.
* etc/NEWS: Announce x_wait_for_event.
etc/NEWS
src/xterm.c