Fixes crashes on ctrl+drag

Fixes issue https://github.com/LMMS/lmms/issues/273