Popup: Ignore resize events right after a click

Fixes gh-6961