menu @DesktopPopup {
sclick {
showmirc $iif($appstate == minimized,-r,-s)
scid %DesktopPopup.LastCID window -a %DesktopPopup.LastChannel
}
rclick { DesktopPopup.doclose $iif($mouse.key & 4,-s) }
$DesktoPopup.doclose
}
;DesktopPopup.LastChannel stores the channel which "produce" the DestopPopup
;DesktopPopup.LastCID stores the connection ID (CID) which "produce" the DesktopPopup