From 0121d78e54692de504255062461be9758dc9c05a Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 19 May 2014 08:53:25 -0500 Subject: [PATCH] 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. --- WINGs/wcolorwell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/WINGs/wcolorwell.c b/WINGs/wcolorwell.c index ace85cd0..595531c4 100644 --- a/WINGs/wcolorwell.c +++ b/WINGs/wcolorwell.c @@ -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;