Code:
menu @notify {
  sclick:{
    if $mouse.x isnum 1-150 && $mouse.y isnum 1-20 { 
      hadd -m notify move 1 
      hadd -m notify x $mouse.mx
      hadd -m notify y $mouse.my
    }
    elseif $mouse.x isnum 155-165 && $mouse.y isnum 1-20 { window -n @notify }
    elseif $mouse.x isnum 165-175 && $mouse.y isnum 1-20 { window -c @notify } 
    elseif $mouse.x isnum 160-180 && $mouse.y isnum 20-40 {
      if $scon($calc(%scon -1)) { 
        dec %scon 
        drawnotify %scon
      }
    }
    elseif $mouse.x isnum 160-180 && $mouse.y isnum 280-300 { 
      if $scon($calc(%scon +1)) { 
        inc %scon 
        drawnotify %scon
      }
    }
  }
  uclick:{
    if $hget(notify,move) { .hfree notify }
  }
  mouse:{
    if $hget(notify) { 
      echo -s window @notify $calc($mouse.mx - ($mouse.mx - $hget(notify,x))) $calc($mouse.my - ($mouse.my - $hget(notify,y))) 
      hadd -m notify x $mouse.mx
      hadd -m notify y $mouse.my
    }
  }
  leave:{
    if $hget(notify) { .hfree notify }
  }
}

all code relevant with x/y pos is there.


New username: hixxy