Hi and thanks!

I am making the required changes in
https://github.com/sailfishos-flatpak/maliit-framework/tree/flatpak . I
think my case is way easier than yours - all I had to do is to plant plugin
into location where Qt can load it. For Godot, you would have to probably
write your own plugin calling Maliit via DBus. Note that you'll have to
handle rectangle covered by the keyboard as well, I suspect. But maybe
there is some plugin among the ones in Maliit framework that you could use.
Although, from a quick search, looks like Godot went with some custom GUI
system. Which probably means that it will require custom Maliit plugin as
well.

Cheers,

Rinigus


On Thu, Jan 9, 2020 at 12:10 PM Dmitriy Sedov <code.codit...@gmail.com>
wrote:

>
> Question to Rinigus  =)
> First, you have great work wit Flatpak! Respect!
> Second, i am working with port of Godot Game Engine, its allready work,
> but, I still haven't figured out how to call a maliit keyboard in a non
> silica application. As I see you have figured it out, please share your
> experience, give me a link to your code/repository where you initialize the
> keyboard. Thanks!
> if you in telegram, me its sashikknox.
>
> > Message: 1
> > Date: Thu, 9 Jan 2020 09:11:33 +0200
> > From: rinigus <rinigus....@gmail.com>
> > To: Sailfish OS Developers <devel@lists.sailfishos.org>
> > Subject: Re: [SailfishDevel] Flatpak for Sailfish
> > Message-ID:
> >       <
> ca+4hnmg7talinack-qohjswy-4egfgj_3ens3nkr5_iq7g-...@mail.gmail.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > Morning,
> >
> > I've got SFOS keyboard triggered from Flatpak app by planting in Maliit
> > input context plugin into it. Had to drop compensation for keyboard
> > rectangle inside Flatpak as it was compensated twice (once in SFOS and
> once
> > in Flatpak) leading to large empty area above the keyboard.
> >
> > Currently, keyboard is stuck in portrait mode and doesn't know much about
> > app being minimized. As a result, while app is rotating in response to
> the
> > screen rotation, keyboard gets stuck in portrait. In addition, if you
> open
> > keyboard in Flatpak, minimize the app, move to some other SFOS app,
> you'll
> > get open keyboard with the text prediction still pointing towards Flatpak
> > app context. This is not surprising as orientation and focus are set by
> the
> > plugin and it just doesn't have data to work with. So, I plan to write
> > small dbus server/client to pass these data from flatpak-runner (host of
> > flatpak apps) to Maliit plugin. In the end, we will have special version
> of
> > the plugin oriented towards running inside Flatpaks, but that should be
> OK.
> >
> > Tried last night to pass orientation by setting Wayland's server
> > setScreenOrientation (
> >
> https://git.sailfishos.org/mer-core/qtwayland/blob/master/src/compositor/compositor_api/waylandcompositor.h#L96
> ),
> > but that didn't help and the plugin was not getting any signals from
> > qGuiApp->primaryScreen. So, that shortcut didn't work...
> >
> > All in all, we are getting there.
> >
> > Cheers,
> >
> > Rinigus
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscr...@lists.sailfishos.org
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to