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

Fixed visibility of menu items in different statuses of window #327

Merged
merged 3 commits into from
Sep 28, 2016

Conversation

rdnvndr
Copy link
Contributor

@rdnvndr rdnvndr commented Sep 10, 2016

No description provided.

if(!(np->state.status & STAT_FULLSCREEN) &&
!(np->state.status & STAT_MINIMIZED) &&
(np->state.border & BORDER_MIN))
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the goal here is to hide the shade/unshade options if either the window is minimized or if it does not support minimization, correct? That seems reasonable to me, but this will also prevent maximization in that case, which I don’t think is desirable. There should probably be another if statement surrounding just the shade portion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, if the window is minimized then it is not visible. You can not run commands:

  • Shade
  • Unshade
  • Maximize-x
  • Maximize-y
  • Maximize
  • Restore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My opinion has changed ;) You can not run commands:

  • Shade
  • Unshade
  • Restore from maximizing

@rdnvndr
Copy link
Contributor Author

rdnvndr commented Sep 19, 2016

I corrected my pull request. Please look it.

@joewing joewing merged commit fc00894 into joewing:master Sep 28, 2016
@joewing
Copy link
Owner

joewing commented Sep 28, 2016

Thanks!

@rdnvndr
Copy link
Contributor Author

rdnvndr commented Sep 29, 2016

@joewing, sorry for my code style. Thank you for your patience.

@rdnvndr rdnvndr deleted the fixing-of-winmenu branch August 11, 2017 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants