alt drag support, shamlessly stolen from siof/opensnap