Detect and override illegal window size hints