1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 22:52:34 +01:00

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
2014-05-19 08:53:25 -05:00
committed by Carlos R. Mafra
parent 13a9ebedcf
commit 0121d78e54

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;