Replace history's m_last entry pointer with a weak one, so it does not continue to hold a reference to the most recent history entry after the history is clearedKeep track of the last item even if it is not going to be saved in history.
Allow accessing it with Klipper::activeItem().
Notify tray icon about changes to the active item.
BUG: 409366