Client: clear bug of minimizing window