have set this to true at the same time.
Get current value.
QxWindow.getActive();
Set new value.
QxWindow.setActive(newValue);