Need to have extended flags for mouse events to work