set WINDOW MARGIN X
fix window shadow flag