Fix segfault in color picker
commit75f133285fbef7c42b09b7795646839260674e5b
authorTorrance, Douglas <dtorrance@piedmont.edu>
Tue, 29 Jun 2021 19:21:32 +0000 (29 19:21 +0000)
committerCarlos R. Mafra <crmafra@gmail.com>
Tue, 29 Jun 2021 21:32:31 +0000 (29 22:32 +0100)
treee092fbcedf49e26e9b1e569378dd6edc20e5ad61
parenta6ec6a30a34b7dcb5a245d20f36589899acc42fe
Fix segfault in color picker

Previously, we released the color well's color even if it was the same
as the new color.  This eventually resulted in a segfault when calling
WMPaintColorSwatch because we tried calling XFillRectangle with no
display.

We fix this by only releasing/updating the color well's if it differs
from the new color.
WINGs/wcolorwell.c