Fix for double-handling object:state-changed:focused events from Gedit