Jose' Matos wrote:
On Wednesday 12 July 2006 10:33, Angus Leeming wrote:
What happens in the (hypothetical for now) case when we have two LyXViews
neither of which have focus and the LyXServer receives the setBuffer LFUN?
Which LyXView do we choose is "active"?
Using firefox, as an example, I would say that you throw a coin and decide
based on the face. It works everytime. ;-)
I believe Angus was talking about some program communicating with the
LyXServer without any GUI interaction.
Just something to think about...
If the communication is bidirectional it makes sense to give a different
identification to each LyXViews, no?
Yes and there is already support for that in Gui.h:
int newView(unsigned int width, unsigned int height);
will give this LyXView ID ;-)
Abdel.