|
From: Daniel J S. <dan...@ie...> - 2003-12-11 20:56:30
|
Daniel J Sebald wrote: > Petr Mikulik wrote: > >>> I have done a little bit of research into the X11 protocols, >>> and here is what I have found. >> From doing a "man XRaiseWindow" I gather that "stack" and "depth" are in fact the same thing, i.e., "stack" pertains to the appearance on the desktop. There is something we need to be careful about with the "raise" command. Raising windows one at a time is fine; there is the XRaiseWindow() function. However, raising all the Gnuplot plots at once might pose a bit of a problem. The raise routine to be "nice". That is, say I make plots 1 through 8, in that order so that the linked list within gnuplot_x11 is sequential. But then, I raise plot 1 and 2 to the front, _via the window manager_, not via the "raise #" command. There is no way for gnuplot_x11 to know that that was done. Only the window manager knows that. OK, I go off do something else and then type "raise" to bring up the Gnuplot plots. But gnuplot_x11 will go through its list and raise them one at a time in which case plots 1 and 2 will go back down to the bottom of the pile. The user will not like that and there will be complaints. No solution is better than a bad solution in this case. So, there has to be a method to maintain the order as the window manager sees it for just that group of plots associated with gnuplot_x11. Otherwise, no go. I'm looking to see if there is a command or option that will raise all subwindows of a given window. There is a circulate command for subwindows, even that might work if one calls circulate for the number of windows there are. That way all the subwindows come up eventually and maintain their order. Dan |