Fix mod+resize
Fix mod+resize

Fixes #2479.

It was missing a mod_pressed check.

This also moves the parent traversal into the `if` block.

SirCmpwn/sway,ascent12/sway,taiyu-len/sway,ascent12/sway,taiyu-len/sway,ascent12/sway,1ace/sway,1ace/sway,1ace/sway,taiyu-len/sway