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

Simplify _NET_WM_NAME setting #909

Merged
merged 1 commit into from
Sep 30, 2023
Merged

Simplify _NET_WM_NAME setting #909

merged 1 commit into from
Sep 30, 2023

Conversation

omar-polo
Copy link
Contributor

Other than the off-by-one, it didn't always NUL-terminate the string being sent, causing issues in programs that expect the window manager name to be NUL-terminated.

Spotted after an issue with rofi reported by Mikhail and fixed thanks to Thomas Adam pointing me at the right chunk of code.

Have to admit that I'm still puzzled though, since the previous length of 4 should still result in "FVWM" being set as the WM name, so this change should actually be a no-op, yet I can't make rofi crash anymore.

P.S.: I'm assuming that the last 0x3 was a typo for 0x33 (i.e. '3')

Other than the off-by-one, it didn't always NUL-terminate the string
being sent, causing issues in programs that expect the window manager
name to be NUL-terminated.

Spotted after an issue with rofi reported by Mikhail and fixed
thanks to Thomas Adam pointing me at the right chunk of code.
@ThomasAdam ThomasAdam added the type:bug Something's broken! label Sep 30, 2023
@ThomasAdam ThomasAdam added this to the 1.0.9 milestone Sep 30, 2023
@ThomasAdam ThomasAdam merged commit d5dca45 into fvwmorg:main Sep 30, 2023
5 checks passed
@omar-polo omar-polo deleted the nulterm branch September 30, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something's broken!
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants