Bug 2240167 - Need to press Super+space twice to activate/deactivate on Cinnamon desktop
Summary: Need to press Super+space twice to activate/deactivate on Cinnamon desktop
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: ibus
Version: 39
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: fujiwara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-22 08:01 UTC by Akira TAGOH
Modified: 2024-11-28 05:10 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-27 21:31:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github linuxmint cinnamon issues 10505 0 None open Keyboard layout gets stuck when using Super + Space shortcut to change the layout to Persian 2023-10-11 12:44:26 UTC
Github linuxmint cinnamon issues 7567 0 None open Ibus: can't change IME with Super + Space 2023-10-11 12:44:26 UTC

Description Akira TAGOH 2023-09-22 08:01:27 UTC
Summary says it all. The first Super+space just inserts a space and no input engine selector popped up. Super key needs to keep pressed though, the 2nd Super+space pops up the selector as expected.

Reproducible: Always

Steps to Reproduce:
1.Install from Fedora-Cinnamon-Live-x86_64-39-20230920.n.0.iso with ja
2.Boot and open gnome-terminal and/or xed
3.Press Super and space
4.Release space key only and press space key again
Actual Results:  
space character are inserted at 3, and the selector popped up at 4

Expected Results:  
the selector should be popped up at 3 without inserting space

$ rpm -qa | grep -e ^ibus
ibus-libs-1.5.29~rc1-3.fc39.x86_64
ibus-gtk3-1.5.29~rc1-3.fc39.x86_64
ibus-gtk2-1.5.29~rc1-3.fc39.x86_64
ibus-setup-1.5.29~rc1-3.fc39.noarch
ibus-1.5.29~rc1-3.fc39.x86_64
ibus-panel-1.5.29~rc1-3.fc39.x86_64
ibus-anthy-python-1.5.15-2.fc39.noarch
ibus-anthy-1.5.15-2.fc39.x86_64
ibus-hangul-1.5.5-3.fc39.x86_64
ibus-libpinyin-1.15.4-1.fc39.x86_64
ibus-libzhuyin-1.10.2-4.fc39.x86_64
ibus-m17n-1.4.22-1.fc39.x86_64
ibus-typing-booster-2.24.1-1.fc39.noarch
ibus-gtk4-1.5.29~rc1-3.fc39.x86_64

Comment 1 fujiwara 2023-09-22 15:24:34 UTC
Workaround:

1. Menu -> Preferences -> Applets (or Run `cinnamon-settings applets`) and open "Applets" dialog
2. Select "Download" tag in the "Applets" dialog and find "Menu" applet.
3. Click "Configure" gear button on the "Menu" applet and open "Menu" dialog
4. Select "Menu" tag in the "Menu" dialog and find "Keyboard shortcut to open and close the menu" configuration in "Behavior" seciton
5. Click the default "Super_L" button in the confnguration and change another shortcut key likes "Print".
6. Close all dialogs

The you will find your customized setting is saved in $HOME/.config/cinnamon/spices/menu/0.json against /usr/share/cinnamon/applets/menu/settings-schema.json

Now you can use Super-space from the first typing.

Comment 2 fujiwara 2023-10-11 12:53:15 UTC
muffin in Cinnamon is similar with mutter in GNOME and once it binds XIGrabKeycode() fur Super key, it seems the key cannot be forwarded to IBus even if ClutterEvent filter gets FALSE.
Seems XIGrabKeycode() is suppressed until the key is released.
The usage of XIAllowEvents() with XISyncDevice and XIReplayDevice is complicated for me. 

Currently it's difficult to fix the isuse in Cinnamon side.
Another workaround is to add a shortcut key in `cinnamon-settings keyboard` and I may consider a new command `ibus engine --switcher` in the future.

Comment 3 Aoife Moloney 2024-11-27 21:31:11 UTC
Fedora Linux 39 entered end-of-life (EOL) status on 2024-11-26.

Fedora Linux 39 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 4 fujiwara 2024-11-28 03:28:42 UTC
I can reproduce the issue in Fedora 41 but it would be a Cinnamon upstream issue.

Comment 5 Parag Nemade 2024-11-28 04:43:15 UTC
Maybe someone can open upstream issue and/or this bug can be also reopened and targeted for F41.


Note You need to log in before you can comment on or make changes to this bug.