Open
Description
Distribution and Version
Fedora 42
Desktop Environment and Version
gnome-shell-48.1-1.fc42.x86_64
Session Type
Wayland
Application and Version
gedit-48.1-1.fc42.x86_64
IBus version
ibus-1.5.32-1.fc42.x86_64
Issue Description
In Gnome wayland, get_surrounding_text()
does not get an updated text when the cursor position is moved with the mouse.
It does get an update when the cursor position is moved using the arrow keys.
This problem exists only in Gnome Wayland, it works in Gnome Xorg.
Steps to Reproduce
- Open gedit and put some text into the buffer
- Use ibus-typing-booster
- Follow the log file and grep for `get_context`: `tail -F ~/.local/share/ibus-typing-booster/debug.log | grep get_context`
- Type a character somewhere in gedit using typing booster
The log file shows something like
mfabian@f42:~$ tail -F .local/share/ibus-typing-booster/debug.log | grep get_context
2025-05-20 11:40:22,584 hunspell_table.py line 4170 get_context DEBUG: Getting context: surrounding_text = [text = “'test tex
t'”, cursor_pos = 4, anchor_pos = 4]
2025-05-20 11:40:22,584 hunspell_table.py line 4186 get_context DEBUG: Found from surrounding text: tokens=['test']
2025-05-20 11:40:22,584 hunspell_table.py line 4198 get_context DEBUG: Updated context from surrounding text=“” “” “test”
- Cancel preedit with `Escape`
- Move the cursor with the arrow keys to a different position
- Type a character again
- Log file shows updated surrounding text:
2025-05-20 11:40:37,843 hunspell_table.py line 4170 get_context DEBUG: Getting context: surrounding_text = [text = “'test tex
t'”, cursor_pos = 2, anchor_pos = 2]
2025-05-20 11:40:37,843 hunspell_table.py line 4186 get_context DEBUG: Found from surrounding text: tokens=['te']
2025-05-20 11:40:37,843 hunspell_table.py line 4198 get_context DEBUG: Updated context from surrounding text=“” “” “te”
- Cancel the preedit with `Escape`
- Move the cursor to a different position using the mouse
- Type a character again
- Log file shows that the surrounding text was not updated:
2025-05-20 11:40:45,693 hunspell_table.py line 4170 get_context DEBUG: Getting context: surrounding_text = [text = “'test tex
t'”, cursor_pos = 2, anchor_pos = 2]
2025-05-20 11:40:45,694 hunspell_table.py line 4186 get_context DEBUG: Found from surrounding text: tokens=['te']
2025-05-20 11:40:45,694 hunspell_table.py line 4198 get_context DEBUG: Updated context from surrounding text=“” “” “te”
Can you reproduce your problem when you restart ibus-daemon? (yes / no)
yes
Do you see any errors when you run ibus-daemon with the verbose option?
no
Can you reproduce your problem with a new user account instead of the
current your account? (yes / no)
yes
Add any other context about the problem here.
Peek.2025-05-20.11-45.mp4
Metadata
Metadata
Assignees
Labels
No labels