When maximizing through up(), set max flag