|
From: Daniel J S. <dan...@ie...> - 2003-12-11 18:38:55
|
Petr Mikulik wrote: >>I have done a little bit of research into the X11 protocols, >>and here is what I have found. >> >>The X11 standard strongly discourages client programs from >>trying to control window placement or position in the stack >>(i.e. raise/lower) except by making a request of the window >>manager. >> >> > >It would say that's a complete nonsense. *I* want to decide myself what I >want to have a look to, not sb else... > >In particular: > >1. "plot x" => gnuplot raises its x11 window. No problem with any >window manager. > >2. Further, hitting <space> in graphical window => gnuplot's console is >raised. No problem. > >So I really don't know what do you mean in your letter. > This is the problem with X11 documentation; it isn't precisely clear about things, neither is a good concept given. The obvious is given and all the intricacies are left for us to guess... We may be making too much out of this. It may be simply that the documentation intends that the programmer should never directly have the window do these sorts of things. Rather you should request the manager to tell the window to do something. That way you avoid any conflicts in a multitasking system where something could happen to remove or change the window, unknown to the programmer. Dan |