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

Fix uninitialized variable in FvwmIconMan colorset loop. #6

Merged
merged 1 commit into from
Sep 10, 2019

Conversation

cyberbisson
Copy link

In FvwmIconMan, using colorsets to set various styles (e.g., PlainColorset,
SelectColorset, etc.) is broken. Essentially, background colors for one color
end up being mapped to the shadow color of the previously used colorset. This
is because the loop that calls fvwmlib_XCreateGC on the various colorsets does
not happen to set the background color from the colorset inside the loop. This
makes the code function OK with just one colorset, but adding a second colorset
in your settings causes problems.

This change explicitly set the background color on the GC within the loop, so as
to not carry forth the shadow color from the end of the previous iteration.

In FvwmIconMan, using colorsets to set various styles (e.g., PlainColorset,
SelectColorset, etc.) is broken.  Essentially, background colors for one color
end up being mapped to the shadow color of the previously used colorset.  This
is because the loop that calls fvwmlib_XCreateGC on the various colorsets does
not happen to set the background color from the colorset inside the loop.  This
makes the code function OK with just one colorset, but adding a second colorset
in your settings causes problems.

This change explicitly set the background color on the GC within the loop, so as
to not carry forth the shadow color from the end of the previous iteration.
@ThomasAdam ThomasAdam merged commit 16ee6fb into fvwmorg:master Sep 10, 2019
@ThomasAdam
Copy link
Member

Thank you!

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