-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting SWT embedding to work under Linux #18
Comments
for reference, the attached code fixes and extends this original example FrameWithSWT.java but have same issue as in #6 with gtk3 (rh7) :( it seems there's no more proper support for container.embeddedHandle ? |
We have reproduced this issue @adfinis-sygroup, while I haven't solved the issue with gtk3, I was able to provide a workaround. Run the noa-app with gtk2 by setting the environment variable: SAL_USE_VCLPLUGIN=gtk. We have decided that this is a feasible medium-term workaround. With gtk3 I noticed that LibreOffice isn't embedded at all. It creates a small window, the window-manager recognizes it as a full window. My wild guess: the embedded window is 'XReparentWindow()ed' out of the noa-app after noa has embedded the window. My next step would be.
I haven't verified any of the next steps and it's out of the scope of my task. |
SAL_USE_VCLPLUGIN=gen worked, but with focus problems. SAL_USE_VCLPLUGIN=gtk workerd fine, but I had to install libreoffice-gtk2. Hope this helps. |
Hi, I opened one (550517) this morning about the focus. |
I managed to switch from AWT to SWT embedding on Windows. This however broke the Linux Version. With the arguments for
XSystemChildFactory#createSystemChild(...)
inLocalOfficeConnection#getOfficeFrame(Composite)
set correctly -container.embeddedHandle
instead ofcontainer.handle
andSystemDependent.SYSTEM_XWINDOW
instead ofSystemDependent.SYSTEM_WIN32
- I can open a document. Loading another document after closing the previous yields an exception however (https://github.com/LibreOffice/core/blob/539c75b910f518a1fe51e9a21f6368a91c69ed88/framework/source/fwi/threadhelp/transactionmanager.cxx#L183).Did anyone manage to embed LO successfully using SWT under Linux?
The text was updated successfully, but these errors were encountered: