Added in 1.9.4

$leftwinwid

Returns window id of the last window where the mouse was left.

Example

menu @Example {
  leave:/echo mouse left $leftwin $leftwinwid $leftwincid
}