Skip to content

Conversation

@geekosaur
Copy link
Contributor

@geekosaur geekosaur commented Nov 25, 2025

Description

Some *Menu functions defer to *MenuConfig, others to *MenuArgs def; the def there is the empty list, losing the default parameters passed to dmenu. I have not changed the deferrals since people may be relying on that, but I have replaced def with the default list of dmenu parameters (currently only "-i").

Also, since the default dmenu parameters needed to be shared to do the above, export it for users to use in *MenuArgs calls if they wish.

Checklist

  • I've read CONTRIBUTING.md

  • I've considered how to best test these changes (property, unit,
    manually, ...) and concluded: must be tested manually

  • I updated the CHANGES.md file

Also, since the default dmenu parameters needed  to
be shared to make things consistent, export that shared
list of parameters for users to use in `*MenuArgs` calls.
@geekosaur
Copy link
Contributor Author

geekosaur commented Nov 25, 2025

An alternative way to do this would be to, instead of adding and using a common default for the arguments, use menuArgs def. But I still find def error-prone (#575, and arguably this bug since def was apparently expected to do that automatically here) and would strongly prefer to avoid its use.

@geekosaur geekosaur force-pushed the windowbringer-inconsistency branch from 4e8f175 to 2d69be3 Compare November 25, 2025 02:51
@geekosaur geekosaur marked this pull request as ready for review November 25, 2025 02:52
Copy link
Member

@slotThe slotThe left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@geekosaur geekosaur force-pushed the windowbringer-inconsistency branch from 2d69be3 to 073b1de Compare November 25, 2025 18:01
@geekosaur geekosaur merged commit a068876 into xmonad:master Nov 25, 2025
28 of 29 checks passed
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.

WindowBringer's gotoMenu and bringMenu are inconsistent with each other with respect to case insensitivity

2 participants