Submitted by Anonymous (not verified) on
Fri, 06/15/2012 - 12:07
Hello,
we have a lot of Motif Applications and now changing from mwm to fvwm. The problem is that the dialogs shall not be resizeable by the user. It doesn't work under the fvwm. We use
XtVaSetValues( widget, XmNmwmDecorations, MWM_DECOR_TITLE | MWM _DECOR_BORDER, NULL );
to do this.
The border of the dialogs are thin and it looks that they are not resizeable but if you drag the mouse on the corners you can resize the dialogs.
So my question is how can i control resizeablilty under fvwm from within a Motif program ?
Thanks richard
‹ Geeting issue with pull bar menu mwm equivalent for fvwm StaysOnTop? ›
Submitted by yahubat on
Mon, 07/16/2012 - 13:18
Wed, 02/14/2007 - 18:08#1
dpeterc
Preventing to Resize a Motif Application under FVWM
I think it is difficult, if the window manager does not
respect MWM hints.
The fastest solution is to try other window managers until
you find one that does. I use KDE and Gnome without too much
trouble. But I also avoid making exotic requests to WM ;-)
Thu, 02/15/2007 - 06:29#2
Submitted by yahubat on
Mon, 07/16/2012 - 13:18
Thu, 02/15/2007 - 06:29#2
RichardSailer
Preventing to Resize a Motif Application under FVWM
my project management says that I must use the FVWM now and the FVWM got the Features we need (StayOnBottom .. ).
The last thing I have trouble is the resizing.
Tue, 02/27/2007 - 06:51#3
Submitted by yahubat on
Mon, 07/16/2012 - 13:19
Tue, 02/27/2007 - 06:51#3
RichardSailer
Now I'm trying to set the WM Size Hints but it won't work
To prevent the fvwm from resizing my Windows I wanted to set the Size Hints but it doesn't works.
size_hints = XAllocSizeHints();
size_hints->flags = PMaxSize | PMinSize | PSize;
size_hints->min_width = 100;
size_hints->min_height = 100;
size_hints->max_width = 1000;
size_hints->max_height = 1000;
size_hints->width = 100;
size_hints->height = 100;
XSetWMNormalHints( XtDisplay( xd_rootwidget()),
XtWindow( xd_rootwidget() ),
size_hints );
XFree( size_hints );
Can someone help me what goes wrong ?
Mon, 03/05/2007 - 12:56#4
Submitted by yahubat on
Mon, 07/16/2012 - 13:19
Mon, 03/05/2007 - 12:56#4
drjones
Preventing to Resize a Motif Application under FVWM
Basically, you can't. FVWM is designed with the policy that the end-user is in control, not the application developer. So, FVWM can be configured to ignore/bypass almost all WM hints. The only way to achieve what you desire is to set the relevant options in the ~/.fvwm/.fvwm2rc file for the user (like MWMDecorHints). You can read up more in the (massive) fvwm manpage.
Be warned, though: users can still undo all your settings by editing their .fvwm2rc files. The FVWM user-group is very hostile to developers who impose window-management restrictions on users, so FVWM is unlikely to ever support mwm-like compulsory restrictions. You'd be better off redesigning the dialog so that it handles resizes gracefully (perhaps by using nested XmForm's). This will avoid the problems, and also earn you a lot of GUI brownie points with the users.