Composed characters stop working after opening a new tab or window in gedit or gnome-terminal
Steps to reproduce
- Open gedit or gnome-terminal.
- Open a new tab or window.
- Try to write a composed character. For example, on the Finnish keyboard layout, a tilde (~) is produced by pressing AltGr+¨ and then space.
Current behavior
After pressing AltGr+¨ a tilde is shown with an underscore (the underscore indicates that composition is in progress), as expected, but after pressing space the tilde disappears. No character is produced and the cursor stays at its old position. This seems to happen with all composed characters, for example ñ.
This works fine before opening the new tab or window. Closing the new tab or window doesn't help, the only way I know the correct behaviour can be achieved again is to restart the application.
Expected outcome
After pressing AltGr+¨ a tilde is shown with an underscore, and then after pressing space the underscore disappears and the cursor moves forward.
Version information
Gtk version: 3.24.0-3
Operating system: PureOS (which is very close to the testing branch of Debian)
Additional information
I tried starting gedit from terminal to see if it produces any console output related to this. No messages whatsoever.