Operating System - HP-UX
1833068 Members
3063 Online
110049 Solutions
New Discussion

Set Resource to keep Window on top in CDE

 
Daniel Gowans
Advisor

Set Resource to keep Window on top in CDE

I found this neat feature in fvwm that allows me to say: "Any window name that starts with 'Dialog' will always stay on top of all other windows"

Is there a way to do this in CDE? I would like to set a resource or style or something, so that any window/app with the title "Dialog*" will always stay on top.

We have a program that pops up dialog boxes and once in a while they get lost behind all the others. I was able to fix this on our FVWM Linux machines, but don't know if or how on CDE. Thanks!
4 REPLIES 4
Alex Glennie
Honored Contributor

Re: Set Resource to keep Window on top in CDE

As I understand things X treats all window /clients equally and it's usually the window manager that gets the final say on focus, size etc
...

Under CDE it is dtwm (See man dtwm and
dtwmrc for more info). There are configurable resources for
window menus, etc, but no resource for "on top". There is
a window manager function (f.raise) which can raise a window, but
this is a manual thing. On the programming side there is
a parameter that can be set named "override-redirect" which can
bypass asking the window manager's permission, but I can find no further details on this ..... perhaps someone with more knowledge of CDE/ Motif programming could advise ..... Rick or Mike if you are listening ?

Also it maybe useful if we knew how you achieved this under fvwm ....
Steve Steel
Honored Contributor

Re: Set Resource to keep Window on top in CDE

Daniel Gowans
Advisor

Re: Set Resource to keep Window on top in CDE


Here is how I did it in fvwm2. It was a Style setting. I don't actually understand this file very well... it was more of an experiment.

See attached. The change is on line 51:

Style Dialog* StaysOnTop
Daniel Gowans
Advisor

Re: Set Resource to keep Window on top in CDE


The file doesn't want to show up....