rem: break;  case ButtonRelease: panel->flags.dragging = 0; if (!panel->flags.continuous) { if (panel->action) (*panel->action)(panel->action, panel->clientData); } break;  case MotionNotify: x = event->xmotion.x; y = event->xmotion.y;  if (panel->flags.dragging) { if (getPickerPart(panel, x, y) == CUSTOMPALETTE_PART) { customPalettePositionSelection(panel, x, y); } else customPalettePositionSelectionOutBounds(panel, x, y); } break; }
context: customPaletteHandleActionEvents(XEvent *event, void *data){    W_ColorPanel   *panel = (W_ColorPanel*)data;    int                x, y;        switch (event->type) {     case ButtonPress:	x = event->xbutton.x;	y = event->xbutton.y;		if (getPickerPart(panel, x, y) == CUSTOMPALETTE_PART) {	    panel->flags.dragging = 1;	    customPalettePositionSelection(panel, x, y);	}	break;	     case ButtonRelease:	panel->flags.dragging = 0;	if (!panel->flags.continuous) {	    if (panel->action)		(*panel->action)(panel->action, panel->clientData);	}	break;	     case MotionNotify:	x = event->xmotion.x;	y = event->xmotion.y;		if (panel->flags.dragging) {	    if (getPickerPart(panel, x, y) == CUSTOMPALETTE_PART) {		customPalettePositionSelection(panel, x, y);	    }	    else		customPalettePositionSelectionOutBounds(panel, x, y);	}	break;    }}