Added a flag to the dialog widget to ignore mouse button events itself (will still pass the events to children regardless of the setting).