Unbreak size-locked Java windows

Fixes #138.

This shouldn't break the actual SDL patch.