Clear the text entry after the command is run

Leave the command in the `GtkEntry` if the command crashes, so we can
get OK bug reports.

While here, fix a bug in `CurrentWindowSelector`.