window: Handle middle click in pathbar event callback

https://bugzilla.gnome.org/show_bug.cgi?id=706605