<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi and thanks!</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I am making the required changes in <a href="https://github.com/sailfishos-flatpak/maliit-framework/tree/flatpak">https://github.com/sailfishos-flatpak/maliit-framework/tree/flatpak</a> . 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.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Cheers,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Rinigus</div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 9, 2020 at 12:10 PM Dmitriy Sedov <<a href="mailto:code.codition@gmail.com">code.codition@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Question to Rinigus  =)<br>
First, you have great work wit Flatpak! Respect! <br>
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! <br>
if you in telegram, me its sashikknox.<br>
<br>
> Message: 1<br>
> Date: Thu, 9 Jan 2020 09:11:33 +0200<br>
> From: rinigus <<a href="mailto:rinigus.git@gmail.com" target="_blank">rinigus.git@gmail.com</a>><br>
> To: Sailfish OS Developers <<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>><br>
> Subject: Re: [SailfishDevel] Flatpak for Sailfish<br>
> Message-ID:<br>
>       <<a href="mailto:CA%2B4hNMG7tALinaCk-QoHJSWY-4egfgj_3ens3NKr5_iq7g-RGg@mail.gmail.com" target="_blank">CA+4hNMG7tALinaCk-QoHJSWY-4egfgj_3ens3NKr5_iq7g-RGg@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
> <br>
> Morning,<br>
> <br>
> I've got SFOS keyboard triggered from Flatpak app by planting in Maliit<br>
> input context plugin into it. Had to drop compensation for keyboard<br>
> rectangle inside Flatpak as it was compensated twice (once in SFOS and once<br>
> in Flatpak) leading to large empty area above the keyboard.<br>
> <br>
> Currently, keyboard is stuck in portrait mode and doesn't know much about<br>
> app being minimized. As a result, while app is rotating in response to the<br>
> screen rotation, keyboard gets stuck in portrait. In addition, if you open<br>
> keyboard in Flatpak, minimize the app, move to some other SFOS app, you'll<br>
> get open keyboard with the text prediction still pointing towards Flatpak<br>
> app context. This is not surprising as orientation and focus are set by the<br>
> plugin and it just doesn't have data to work with. So, I plan to write<br>
> small dbus server/client to pass these data from flatpak-runner (host of<br>
> flatpak apps) to Maliit plugin. In the end, we will have special version of<br>
> the plugin oriented towards running inside Flatpaks, but that should be OK.<br>
> <br>
> Tried last night to pass orientation by setting Wayland's server<br>
> setScreenOrientation (<br>
> <a href="https://git.sailfishos.org/mer-core/qtwayland/blob/master/src/compositor/compositor_api/waylandcompositor.h#L96" rel="noreferrer" target="_blank">https://git.sailfishos.org/mer-core/qtwayland/blob/master/src/compositor/compositor_api/waylandcompositor.h#L96</a>),<br>
> but that didn't help and the plugin was not getting any signals from<br>
> qGuiApp->primaryScreen. So, that shortcut didn't work...<br>
> <br>
> All in all, we are getting there.<br>
> <br>
> Cheers,<br>
> <br>
> Rinigus<br>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a></blockquote></div>