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
blah43 opened this Issue Jan 4, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@blah43

blah43 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

This comment has been minimized.

Show comment
Hide comment
@bbidulock

bbidulock Jan 5, 2015

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?

Contributor

bbidulock commented Jan 5, 2015

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

This comment has been minimized.

Show comment
Hide comment
@joewing

joewing Jan 5, 2015

Owner

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).

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).

@joewing joewing added the enhancement label Jan 5, 2015

joewing added a commit that referenced this issue Jan 5, 2015

@blah43

This comment has been minimized.

Show comment
Hide comment
@blah43

blah43 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!!

blah43 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

This comment has been minimized.

Show comment
Hide comment
@joewing

joewing Jan 7, 2015

Owner

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

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 Jan 7, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment