Added in 1.9.4

$leftwincid

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

Example

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