Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my local .mwmrc file I have disabled moving and resizing window from the system menu, but I can still use the mouse to move or resize the window. How do I prevent users from doing that with the mouse?

Menu DefaultWindowMenu
!   Restore     _R  Alt<Key>F5  f.restore
!   Move        _M  Alt<Key>F7  f.move
!   Size        _S  Alt<Key>F8  f.resize
!   Minimize    _n  Alt<Key>F9  f.minimize
!   Maximize    _x  Alt<Key>F10 f.maximize
!   Lower       _L  Alt<Key>F3  f.lower
!   no-label                f.separator
!   Close       _C  Alt<Key>F4  f.kill

I'm running SLES 11. The windows are in a Java Swing application delivered via javaws. The application developers don't want to manage their windows and expect it to happen at the OS level.

share|improve this question

I had to look deeper into the .mwmrc file and mess with the mouse buttons:

Buttons DefaultButtonBindings
    <Btn1Down>  icon|frame  f.post_wmenu
    <Btn3Down>  icon|frame  f.post_wmenu
    <Btn3Down>  root        f.menu  DefaultRootMenu
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.