[lipstick] Check if the new window size is different

When changing the window id used by a WindowPixmapItem we must check
if the new window has a size different than the old one, and emit
the signal.