Fix two bugs in ConfigureWindow arg handling.