> the fact that he would try to kiss her (even though he knew she has a boyfriend)
Two things:
or
2. Your girlfriend gave him some reason to believe that she would accept his kiss.
I reckon you should visit your girlfriend at her house a little more. Subtle, just to make him aware of your presence. But don't try to start anything, otherwise your girlfriend might feel too awkward and annoyed.