Fix #2299: Wrong mask logic in window.setResizable

Calling window.setResizable(false) twice causes the window to be
resizable, due to wrong XOR bitmask logic. This commit fixes it.