I had this problem only on GTK and only with -dUseStatusIcon switch. But OnMouseDown works fine and I am using this event instead of OnClick