Fixes all types of windows (mouse in and out is fixed)