The embedded application should follow the XEmbed protocol. This is the case if the embedded application is another Gambas application.
If the embedded application does not follow the XEmbed protocol, then focus handling, activation, accelerators and other features will not work properly.