fix windowed mode always being enabled