added kludge to fix some input focus misbehavior in gedit and anjuta, thanks Martti...