Main window: Move the task of finding the boxes below the mouse cursor in a job

Signed-off-by: Jerome Flesch <jflesch@gmail.com>