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

Add details to ManageHook.hs docs #504

Merged
merged 3 commits into from Apr 27, 2024
Merged

Conversation

mgkurtz
Copy link
Contributor

@mgkurtz mgkurtz commented Apr 27, 2024

Description

Add relevant information about title and stringProperty as discussed in #503.

Checklist

  • I've read CONTRIBUTING.md

  • I've confirmed these changes don't belong in xmonad-contrib instead

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

  • I updated the CHANGES.md file

Well, if you think, I shall test these doc changes or update the CHANGES.md, please tell me.

@@ -91,7 +92,7 @@ className :: Query String
className = ask >>= (\w -> liftX $ withDisplay $ \d -> fmap resClass $ io $ getClassHint d w)

-- | A query that can return an arbitrary X property of type 'String',
-- identified by name.
-- identified by name. Works for ASCII strings only.
Copy link
Member

Choose a reason for hiding this comment

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

Did you perhaps wish to add a note that for _NET_WM_NAME, WM_NAME and possibly also WM_CLASS there are special functions available that work better, and hyperlink to them?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, quite right.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I’ve just added a short sentence referring to the specialized variants. Is that fine? Any more suggestions?

Copy link
Member

@liskin liskin left a comment

Choose a reason for hiding this comment

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

Yep, I think this is perfect!

(just a typo there, then lgtm)

src/XMonad/ManageHook.hs Outdated Show resolved Hide resolved
Co-authored-by: Tomáš Janoušek <tomi@nomi.cz>
@slotThe slotThe merged commit cde1a25 into xmonad:master Apr 27, 2024
16 checks passed
@slotThe
Copy link
Member

slotThe commented Apr 27, 2024

Thanks!

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.

None yet

3 participants