Jan Vroonhof <vroonhof(a)math.ethz.ch> writes:
Maybe you could move the call
f = x_any_window_to_frame (d, win);
if (!f)
return 0;
to before the loop. Since frames are biggest structures we support, if
it is not a window of a frame there is no use iterating down anyway.
Oh, good point!
I'll try that -- I hadn't because I thought that the Window could be
something strange, like a scrollbar or something, which doesn't
correspond to an Emacs window...
To answer my own question: I just had another look at frame-x.c and
feel real stupid now, as I found 'is_valid_window()' which aparently
does exeactly what I was looking for :-)
Next time I will read the whole source before posting dumb
questions. Sorry for the waste of bandwidth...
I will send a new patch later this weekend.
Why is the XSync solution not OK? Isn't the problem that we are
getting return outdated information because Xt has a backlog
processing events.
Yes, that's what I think.
Martin seemed unhappy with the idea of adding yet another XSync
because of the performance hit it causes.
Gunnar