Added in 1.9.0

$activewid

Returns window id for the currently active window.

See also $activecid, $lactivecid, $active, $lactive, $lactivewid. on ACTIVE.

Example

on *:ACTIVE:*:echo -ag active wid is $activewid last active wid was $lactivewid