Karl Kleinpaste <karl(a)justresearch.com> writes:
Nonetheless, the trouble seems to occur much less often. Jan
wondered/worried whether update_frame_window_mirror was being misused
elsewhere -- perhaps there are simply more cantankerous occurrences of
the same problem elsewhere?
It is not really misused. It just a real race condition. There are
loads of legitimate uses for update_frame_window_mirror and I am not sure
none of them can occur when a keypress event is in the que.
We'll just have to make x_any_window_to_frame smarter. Either by
changing the scrollbar check to also check non-current maps or by
doing the parent check, like I originally intended.
Does anybody know how expensive XtWindowToWidget is?
Jan