martin rudalics writes: >> Perhaps the thing to do is simply to disable x-wait-for-event-timeout if >> we end up hitting the timeout. Under most window managers the frame >> becomes visible much faster than 100ms anyway, as far as I know. > > If and when we do that, we should also warn and inform the user. And we > probably should collect information about those window managers that are > not able to inform us in due time that the frame has become visible. Not sure what Alexander is using, but under i3 the problem is simply that the frame doesn't become visible until the user switches to the virtual workspace where Emacs is. So it's not that we have a visible frame which the window manager fails to inform us about in time, rather the frame just doesn't become visible in time. It occurs to me that another possibility is simply to disable the timeout when doing the auto-raise. We have the timeout due some users' configurations accidentally relying on the fact that a frame will be visible after make-frame returns, but it seems unlikely that anyone would manage to rely on the frame being visible after a call to `message' occurs.