Bug 170305 - fcitx5-unikey: Surrounding text does not work properly in gtk3 vcl
Summary: fcitx5-unikey: Surrounding text does not work properly in gtk3 vcl
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: GTK3
Blocks:
  Show dependency treegraph
 
Reported: 2026-01-12 10:33 UTC by trmdi
Modified: 2026-01-23 09:19 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description trmdi 2026-01-12 10:33:46 UTC
Description:
Surrounding text does not work properly in kf5 vcl

Steps to Reproduce:
Steps to reproduce:

1. Enable the "Allow to modify surrounding text".
2. Install and run the prerelease version from https://www.libreoffice.org/download/download-libreoffice/ (./install RPMS libreoffice/ && ./libreoffice/opt/libreofficedev26.2/program/soffice)
3. Type into Writer: a b (a [space] b)

Actual Results:
Spaces are removed.

Expected Results:
Spaces are not removed


Reproducible: Always


User Profile Reset: No

Additional Info:
.
Comment 1 trmdi 2026-01-12 10:40:39 UTC
Forgot to mention, the issue only happens in LibreOffice, not in other apps like Kate, Firefox...
Comment 2 trmdi 2026-01-12 10:44:56 UTC
Sorry again, this issue happens when you use fcitx5-unikey and enable the option in the step 1.
Comment 3 Michael Weghorn 2026-01-22 11:24:57 UTC
I tried to reproduce, but as already mentioned earlier in https://bugs.documentfoundation.org/show_bug.cgi?id=152519#c24 (that ticket also has more details on the setup), I cannot reproduce the problem  on Debian testing with current master, in a KDE Plasma Wayland session.

Can you please share the exact version information from "Help" -> "About LibreOffice" and your Linux distro?

Any ideas on what a relevant difference might be why I cannot reproduce the problem?


(In reply to trmdi from comment #0)
> 1. Enable the "Allow to modify surrounding text".

Don't know whether this is relevant, but in the fcitx5-unikey version provided by Debian testing (5.1.9-1) this is called "Allow to modify surrounding text (experimental)". What version of fcitx5-unikey are you using?

Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: 6b3b9a2a2dfc0588e368b64bb4c86d246ec012a0
CPU threads: 32; OS: Linux 6.17; UI render: default; VCL: qt6 (cairo+wayland)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: 6b3b9a2a2dfc0588e368b64bb4c86d246ec012a0
CPU threads: 32; OS: Linux 6.17; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 4 Michael Weghorn 2026-01-22 11:55:12 UTC
Also, can you please try whether you encounter the issue also with the qt6 instead of the kf5 VCL plugin?

You can test that by setting environment variable SAL_USE_VCLPLUGIN=qt6 when starting LibreOffice.
Comment 5 Phoenix 2026-01-22 13:49:17 UTC
"Spaces are removed" issue should happen on vcl gtk3 (Libreoffice on Gnome or KDE) only.
Comment 6 Phoenix 2026-01-22 13:56:47 UTC
Edit:
"Spaces are removed" issue should happen on vcl gtk3 (Libreoffice on Gnome or Xfce) only.
Comment 7 trmdi 2026-01-23 09:05:48 UTC
It also happens on with qt6 vcl.

> Version: 26.2.0.0.beta1 (X86_64)
Build ID: 1ff380402efe713308d6f0e5c815a6e3a1b3b67c
CPU threads: 4; OS: Linux 6.15; UI render: default; VCL: qt6 (cairo+xcb)
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

> "Allow to modify surrounding text (experimental)"

Yes, that's it.

I'm using fcitx5-unikey 5.1.7 on openSUSE Tumbleweed KDE Live.
Comment 8 trmdi 2026-01-23 09:13:08 UTC
"a b" => space is removed on wayland+kf5, not removed on wayland+qt6
Comment 9 trmdi 2026-01-23 09:19:35 UTC
"a[space][backspace]f[space]b" => space before b is removed on both kf5/qt6 vcl.

It does not happen in Kate.
Expect "à b".