Fixes the ability to move a titlebarless-window that I broke in my last PR

Fixes a bug from my bug fix for #529.