rem: 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; 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;
add: 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);
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;			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;	}}