Submitted by orank on Sun, 08/25/2002 - 09:19. Developers
Hi ,
I want to set the focusAutoRaise policy of the window manager on one specific window (Motif draw area) of my application. I want to do that from within the code and not as a .Xdefaults variable that can change.
Can I do that ? is there a way to set the focusAutoRaise with XtVaSetValues or some thing like that ?
( I searched the web and didn?t find any examples like the one I am looking for)
can you help ?
I don`t believe that it is a property per-window or per-client. The best that you can do is to track FocusIn or Enter events on the window and request to raise it yourself. Note, of course, that this isn`t too polite for the user, and any other application doing the same thing will make for frustration.
I mean to do the opposite, I am stuck with the FocusAutoRaise property set to True, and I want a specific window not to popup when it gets button clicks in it. The simple solution was to use XLowerWidnow on every mouse click in the window , but I found that this is bad since it lowers the window under other applications and not only in my application. the good solution is probably if I can catch the event that tells the window to popup after a mouse click and gust cancel the popup.
is that possible in X / Motif ?
thanks in advance for all the help.
It`s a window-manager issue; you don`t get the event.
Note that you can restack relative to a specific sibling, so you can re-insert the window in the stacking order where you want it.
Hi DBL ,
thank you for the help , But I dont know how to insert windows to places in the stack , It sounds great and I will love to try it.
is there a code example available some where that does this, I will love to learn from it.
oran
See XConfigureWindow.