fix window open on middle click