texteditor: fix for dragging its window