| Summary: | Shortcut for switching input method (Windows + Space) does not work when using kimpanel-ibus-panel | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | efanzh |
| Component: | Kimpanel widget | Assignee: | Weng Xuetian <wengxt> |
| Status: | CONFIRMED --- | ||
| Severity: | minor | CC: | chgonzalezg, david.p.warner, kde, kishore96, nate, wengxt, whyhollis+eidei |
| Priority: | NOR | Keywords: | usability |
| Version First Reported In: | 5.21.0 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
efanzh
2021-02-20 02:27:19 UTC
Can confirm this is happening under KDE wayland environment. Previous versions (5.20, 5.19) are also affected. This should be a upstream bug. Seems that ibus's keybinding mechanism for input method switch and emoji display is Xorg-exclusive (See [0]). The input method switch key should work under xwayland context. For example, the key should work under vscode. Binding keyboard switching might be possible with the input-method-unstable-v1 wayland protocol? (Not 100% sure) As the protocol allows ibus to listen to all keyboard events. The only related issue found on ibus repository is [1]. But it is marked as duplicate of implementing input method v2 protocol. [0]: https://github.com/ibus/ibus/blob/ef4c5c7ef790ce1f80e94a5463e110ed4bae254e/ui/gtk3/keybindingmanager.vala#L74 [1]: https://github.com/ibus/ibus/issues/2245 The issue happens to my X11 session, not my wayland session. So maybe the issue has nothing to do with wayland. Ouch. Sorry for that. I don't don't have this issue under Xorg. I got rime and mozc in ibus and the Super+space thing can switch them. So, 1. Which input method (under rime) are you using? 2. Does it work in KDE 5.21? I found out that I was actually using plasma desktop 5.21.0. The version I said before was wrong, sorry about that. And I am using ibus-libpinyin, not rime.
I have tried multiple times, execute
ibus-daemon -drx
then Windows + Space works, but the input method panel is not being used. While executing
ibus-daemon -drx -p /usr/lib/kimpanel-ibus-panel
The input method panel is working, but the shortcut does not work any more.
I can't reproduce it on my system with ibus-libpinyin. Sorry can't help with this issue. What operating system do you use? May be I am missing some packages. I'm on arch too. Got following ibus-related packages: ibus ibus-mozc ibus-rime Following for kde: ark bluedevil discover dolphin dolphin-plugins drkonqi ffmpegthumbs filelight frameworkintegration gwenview kaccounts-integration kactivities kalarm kate kcalendarcore kcalutils kcontacts kdeclarative kde-cli-tools kdeconnect kdecoration kded kdegraphics-thumbnailers kde-gtk-config kdelibs4support kdenlive kdeplasma-addons kdesu kdewebkit kdialog keditbookmarks kfind khelpcenter kholidays kidentitymanagement kinit kio-extras kldap kmenuedit konsole kscreen ksystemlog ktorrent kwalletmanager kwayland-integration kwayland-server kwrited libappindicator-gtk3 libblockdev libkdepim libkgapi libkipi libkleo libkscreen okular oxygen phonon-qt5 pimcommon plasma-desktop plasma-meta plasma-workspace polkit-kde-agent print-manager sddm-kcm signon-kwallet-extension spectacle syndication systemsettings xdg-desktop-portal-kde I installed all packages in your list, rebooted system, and created a new user with default settings for testing, but the shortcut still does not work. I can't reproduce your issue under X11. I wonder if there's any other keygrab happens that prevent this from working Could you try to set another key in ibus-setup to see if it works? (In reply to Weng Xuetian from comment #9) > I can't reproduce your issue under X11. I wonder if there's any other > keygrab happens that prevent this from working > > Could you try to set another key in ibus-setup to see if it works? Yes, I did try other shortcuts, nothing works as long as I am using kimpanel-ibus-panel. Can you try killall kimpanel-ibus-panel and run it from command line? Did you see any error like "Could not convert keyval=.. to keycode"? If so, could you provide the output of setxkbmap -print ? (In reply to Weng Xuetian from comment #11) > Can you try killall kimpanel-ibus-panel and run it from command line? > > Did you see any error like > > "Could not convert keyval=.. to keycode"? > > If so, could you provide the output of > setxkbmap -print ? No, I did not see any error. This is the output from `setxkbmap -print`: xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete" }; xkb_symbols { include "pc+us+inet(evdev)" }; xkb_geometry { include "pc(pc104)" }; }; Is this still happening to you in Plasma 5.25 or later? (In reply to Nate Graham from comment #13) > Is this still happening to you in Plasma 5.25 or later? Yes, it still happens with version 5.25.5. Thank you for the follow-up! IBus 1.5.29 better integrates with Wayland, and the Super+Space shortcut works now in Wayland apps, though not XWayland apps. https://bugzilla.redhat.com/show_bug.cgi?id=2076596 |