Added in 1.9.3
$lactive
Returns full window name of the last active window before active window.
See also $activecid, $lactivecid, $active, $activewid, $lactivewid. on ACTIVE.
Example
on *:ACTIVE:*:Current active window is $active last active window was $lactive