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

Question: Unset option. #71

Closed
DaveDavenport opened this issue Nov 23, 2016 · 1 comment · Fixed by #72
Closed

Question: Unset option. #71

DaveDavenport opened this issue Nov 23, 2016 · 1 comment · Fixed by #72

Comments

@DaveDavenport
Copy link

Is there a way to see if an option is unset?

If I do:

rofi.width:

It does not find a match when looking it up using: xcb_xrm_resource_get_string. (kind of expected)
But is there anyway to see that is specified but not set.

@Airblader
Copy link
Owner

Airblader commented Nov 24, 2016

Mhm, I've only looked at the code right now but I think this may be a bug. I would expect that such an entry matches with an empty value. At least that's what I'd expect Xlib to do. I'll have a look at it and push a fix if necessary.

Can't believe this wasn't in the tests yet.

Airblader added a commit that referenced this issue Nov 24, 2016
This patch fixes how an entry like

    some.component:

is parsed. Previously, this would error out and ignore the entry,
but the correct behavior is to parse it and assign the empty value
to it. This is needed for applications to differentiate between a
resource not being defined and it having an empty value.

fixes #71
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 a pull request may close this issue.

2 participants