WindowManager: fix a bug when switching between expanded launcher mode and cardView mode

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>