Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Minimize button #152

Closed
paulsery opened this issue Jan 4, 2015 · 4 comments
Closed

Disable Minimize button #152

paulsery opened this issue Jan 4, 2015 · 4 comments

Comments

@paulsery
Copy link

paulsery commented Jan 4, 2015

I'm building a one app appliance using VirtualBox, Fedora Linux and JWM. Because of a VirtualBox seamless-mode limitation I'd like to disable the browser's Minimize Window button. Minimizing an application disappears it in the window mgr, which is hidden by the Seamless mode option - minimizing a window is effectively a one-way operation.

I can live without the minization option. Is there a JWM configuration option that can disable the button? (I've not found - or missed - an answer in the documentation, etc.)

Thanks,
Paul

@bbidulock
Copy link
Contributor

All window managers that respect MOTIFY_WM_HINTS can be set to have no minimize button. Just clear the MWM_FUNC_MINIMIZE bit in the MOTIF_WM_HINTS before mapping the window (or get your toolkit to do so). What toolkit does it use?

@joewing
Copy link
Owner

joewing commented Jan 5, 2015

It should be pretty easy to add a group option for this. There is already a "noshade" option. Something like "nomin" perhaps. It might be good to add "nomax" and "noclose" also.
Of course, there are two aspects to this: removing the actual button and prohibiting the behavior. I tend to think prohibiting the behavior is more useful (and hiding the button if the behavior is prohibited).

@paulsery
Copy link
Author

paulsery commented Jan 6, 2015

I agree that prohibiting the behavior is the better alternative. Ideally, the optional nomax and/or noclose would allow more of the flexibility that my project needs. Thanks for your help!!

@joewing
Copy link
Owner

joewing commented Jan 7, 2015

I ended up adding nomin, nomax, noclose, nomove, and noresize since those were already supported internally, just not exposed through the configuration file.

@joewing joewing closed this as completed Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants