WINGs: Click on colored portion of color well also opens color panel.

The color well contains two views: view, consisting of the outer "button", and
colorView, consisting of the color itself.  Previously, only clicking on view
would bring up the corresponding color panel, resulting in nonintuitive
behavior.
This commit is contained in:
Doug Torrance authored and Carlos R. Mafra committed 2014-05-19 15:12:14 +01:00
1 parent 13a9ebedcf
commit 0121d78e54
1 file changed
+1
+1
View File
@@ -151,6 +151,7 @@ WMColorWell *WMCreateColorWell(WMWidget * parent)
WMCreateDragHandler(cPtr->colorView, handleDragEvents, cPtr);
WMCreateEventHandler(cPtr->view, ButtonPressMask, handleActionEvents, cPtr);
WMCreateEventHandler(cPtr->colorView, ButtonPressMask, handleActionEvents, cPtr);
cPtr->colorView->flags.mapWhenRealized = 1;