A workaround for IMK's mouse handling in Safari.