Discussion:
FVWM: Need help on issue with FVWM menu list.
Shankar, Udaya (U.)
2016-01-14 22:25:13 UTC
Permalink
Hello,
We have FVWM version 2.5 running on SUSE Linux 11, It seems to be working fine but came across an issue while running our applications. Our applications are written in C and Motif and we have also customized FVWM to have Motif compatibility through (Style, ButtonStyle ...) but when the application is opened and running the menu list of the application is not translating or showing the way it is programmed. Below is the snapshot of the menu list that is working fine on the Solaris CDE environment and other with the menu list issue on the Linux FVWM environment.
On Solaris CDE
[cid:***@01D14EED.511F0C60]

On Linux FVWM
[cid:***@01D14EED.511F0C60]


Please let us know on how or where we can get help on handling the menu list in FVWM for the applications (our application is setting XmNmwmFunctions and calling XmInternAtom, XmAddProtocolCallback, and setting XmNmwmMenu within the C-code). Appreciate your help.
Thanks
Udaya
Dan Espen
2016-01-15 00:51:29 UTC
Permalink
Post by Shankar, Udaya (U.)
Hello,
We have FVWM version 2.5 running on SUSE Linux 11, It seems to be
working fine but came across an issue while running our applications.
Our applications are written in C and Motif and we have also
customized FVWM to have Motif compatibility through (Style,
ButtonStyle …) but when the application is opened and running the menu
list of the application is not translating or showing the way it is
programmed. Below is the snapshot of the menu list that is working
fine on the Solaris CDE environment and other with the menu list issue
on the Linux FVWM environment.
On Solaris CDE
On Linux FVWM
Please let us know on how or where we can get help on handling the
menu list in FVWM for the applications (our application is setting
XmNmwmFunctions and calling XmInternAtom, XmAddProtocolCallback, and
setting XmNmwmMenu within the C-code). Appreciate your help.
The menu in the first image is generated by the application.
The menu in the second image is an Fvwm menu.

You don't say what you did to make the menu appear.
I think you have an Fvwm key or mouse binding on the Linux system
that's being intercepted by Fvwm.
--
Dan Espen
Dan Espen
2016-01-16 04:15:00 UTC
Permalink
Hi Dan,
I have several X-Windows/Motif programs written in C that run on
OpenVMS, Tru64 and Solaris that use MWM and I'm porting to Suse Linux
that uses FVWM.
When each of these programs first begins execution, their menus and
decorations are changed using calls into XmNmwmMenu and
I found documentation that says:

XmNmwmMenu
Specifies the menu items that the Motif window manager should add to
the end of the window menu. The string contains a list of items
separated by \n with the following format: ...

I don't think fvwm does that and I don't remember anyone asking for it.

If you can change some code, Fvwm does have ways to add to menus.
XmAddProtocolCallback.
XmAddProtocolCallback - A VendorShell function that adds client
callbacks for a protocol

Not sure how fvwm would be involved with that.
This works on MWM, but not on FVWM.
How do I get FVWM to change the menu and add a menu with a callback programmatically from within my X-windows/Motif C-program?
From the command line:

FvwmCommand AddAToMenu ...

so, do a system call.
--
Dan Espen
Loading...