Add codes to handle special clines(maximized, ontopped,
fullscreened, etc)