Fixes issue with window blurring corrupting drag state.