Only update window title if it needs to
Only update window title if it needs to

Updating it on all state changes caused problems in the editor
under Linux (double paste and double new lines)

doryphores/down-quark,doryphores/down-quark