Fix a crash when moving a pop window

Do show the crash:
>> demo

click on "R3GUI widgets"
click on "Select an option" and leave the dropdown menu open
move the window