Closed Piroro-hs closed 1 year ago
The output of fcitx5 -r --verbose *=5
recorded when I change focus to wezterm and type a
, if it helps.
[ 403838.649] wl_display@1.delete_id(20)
[ 403838.690] zwp_input_method_v2@15.activate()
D2022-10-17 21:27:08.022522 waylandimserverv2.cpp:127] ACTIVATE
[ 403838.768] zwp_input_method_v2@15.surrounding_text("", 0, 0)
[ 403838.793] zwp_input_method_v2@15.text_change_cause(0)
D2022-10-17 21:27:08.022616 waylandimserverv2.cpp:197] TEXTCHANGECAUSE:00
[ 403838.845] zwp_input_method_v2@15.content_type(0, 0)
D2022-10-17 21:27:08.022668 waylandimserverv2.cpp:193] contentTypeCallback:00
[ 403838.899] zwp_input_method_v2@15.done()
D2022-10-17 21:27:08.022722 waylandimserverv2.cpp:135] DONE
[ 403838.963] -> zwp_input_method_v2@15.grab_keyboard(new id zwp_input_method_keyboard_grab_v2@20)
D2022-10-17 21:27:08.022811 instance.cpp:2146] Instance::activateInputMethod
D2022-10-17 21:27:08.022852 instance.cpp:2151] Activate: [Last]: [Activating]:mozc
[ 403839.718] -> zwp_input_method_v2@15.commit(25)
[ 403839.799] -> wl_display@1.sync(new id wl_callback@21)
[ 403841.566] wl_display@1.delete_id(21)
[ 403841.578] wl_callback@21.done(6132)
[ 403842.524] zwp_input_method_v2@15.surrounding_text("", 0, 0)
[ 403842.541] zwp_input_method_v2@15.text_change_cause(0)
D2022-10-17 21:27:08.026369 waylandimserverv2.cpp:197] TEXTCHANGECAUSE:00x56533b18da90
[ 403842.611] zwp_input_method_v2@15.content_type(0, 0)
D2022-10-17 21:27:08.026430 waylandimserverv2.cpp:193] contentTypeCallback:00
[ 403842.650] zwp_input_method_v2@15.done()
D2022-10-17 21:27:08.026469 waylandimserverv2.cpp:135] DONE
[ 403974.119] -> wl_compositor@16.create_surface(new id wl_surface@21)
[ 403974.162] -> zwp_input_method_v2@15.get_input_popup_surface(new id zwp_input_popup_surface_v2@19, wl_surface@21)
D2022-10-17 21:27:08.157989 waylandshmwindow.cpp:61] Buffer state: 0x56533b19d6a0 0
[ 403974.432] -> wl_surface@21.frame(new id wl_callback@6)
[ 403974.450] -> wl_surface@21.attach(wl_buffer@13, 0, 0)
[ 403974.460] -> wl_surface@21.set_buffer_scale(1)
[ 403974.468] -> wl_surface@21.damage(0, 0, 98, 34)
[ 403974.475] -> wl_surface@21.commit()
[ 403975.211] wl_buffer@13.release()
[ 405223.785] -> wl_surface@21.attach(nil, 0, 0)
[ 405223.797] -> wl_surface@21.commit()
[ 405223.800] -> zwp_input_popup_surface_v2@19.destroy()
[ 405223.803] -> wl_surface@21.destroy()
[ 407506.306] wl_display@1.delete_id(19)
[ 407506.340] wl_display@1.delete_id(6)
[ 407506.347] wl_display@1.delete_id(21)
[ 407506.353] zwp_input_method_v2@15.surrounding_text("", 0, 0)
[ 407506.372] zwp_input_method_v2@15.text_change_cause(0)
D2022-10-17 21:27:11.690198 waylandimserverv2.cpp:197] TEXTCHANGECAUSE:00x56533b18da90
[ 407506.453] zwp_input_method_v2@15.content_type(0, 0)
D2022-10-17 21:27:11.690273 waylandimserverv2.cpp:193] contentTypeCallback:00
[ 407506.497] zwp_input_method_v2@15.done()
D2022-10-17 21:27:11.690322 waylandimserverv2.cpp:135] DONE
does wayfire support zwp_input_method_keyboard_grab_v2 correectly? From what I saw, there's no key event reaches fcitx.
Only support text-input-v3 doesn't do anything useful for input method.
I see. Thanks!
Describe the bug Fcitx5 does not work in wayland native applications such as alacritty or wezterm. Maybe due to Wayfire's lack of support but it looks like supporting zwp_text_input_manager_v3 and zwp_input_method_manager_v2. Fcitx5 works on GTK or Qt applications with appropriate im modules installed.
To Reproduce Steps to reproduce the behavior:
Expected behavior Fcitx5 composes input text, without showing a candidate list popup as wayfire does not support zwp_input_popup_surface_v2.
Actual behavior Just typed text is shown and other than nothing had happened.
Desktop:
The output of fcitx5-diagnose
System Info:
uname -a
:lsb_release
:lsb_release
not found./etc/lsb-release
:/etc/lsb-release
not found./etc/os-release
:Desktop Environment:
Cannot determine desktop environment.
XDG SESSION TYPE:
Bash Version:
Environment:
DISPLAY:
Keyboard Layout:
setxkbmap
:setxkbmap
not found.xprop
:Locale:
All locales:
Current locale:
Directories:
Home:
${XDG_CONFIG_HOME}
:Environment variable
XDG_CONFIG_HOME
is not set.Current value of
XDG_CONFIG_HOME
is~/.config
(/home/piroro/.config
).Fcitx5 Settings Directory:
Current fcitx5 settings directory is
~/.config/fcitx5
(/home/piroro/.config/fcitx5
).Current user:
The script is run as piroro (1000).
Fcitx State:
executable:
Found fcitx5 at
/usr/bin/fcitx5
.version:
Fcitx version:
5.0.19
process:
Found 1 fcitx5 process:
fcitx5-remote
:fcitx5-remote
works properly.DBus interface:
Using
dbus-send
to check dbus.Owner of DBus name
org.fcitx.Fcitx5
is:1.462
.PID of DBus name
org.fcitx.Fcitx5
owner is12500
.Debug information from dbus:
Fcitx Configure UI:
Config Tool Wrapper:
Found fcitx5-configtool at
/usr/bin/fcitx5-configtool
.Config GUI for qt:
Found
fcitx5-config-qt
at/usr/bin/fcitx5-config-qt
.Config GUI for kde:
kcmshell5
not found.Frontends setup:
Xim:
${XMODIFIERS}
:Environment variable XMODIFIERS is set to "@im=fcitx" correctly. Xim Server Name from Environment variable is fcitx.
XIM_SERVERS on root window:
Cannot find xim_server on root window.
Qt:
qt4 -
${QT4_IM_MODULE}
:Environment variable QT_IM_MODULE is set to "fcitx" correctly.
qt5 -
${QT_IM_MODULE}
:Environment variable QT_IM_MODULE is set to "fcitx" correctly.
Qt IM module files:
Found fcitx5 im module for qt:
/usr/lib/qt/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so
. Found unknown fcitx qt module:/usr/lib/qt/plugins/kcms/kcm_fcitx5.so
. Found fcitx5 qt5 module:/usr/lib/fcitx5/qt5/libfcitx-quickphrase-editor5.so
. Found fcitx5 im module for qt6:/usr/lib/qt6/plugins/platforminputcontexts/libfcitx5platforminputcontextplugin.so
. Cannot find fcitx5 input method module for Qt4.Gtk:
gtk -
${GTK_IM_MODULE}
:Environment variable GTK_IM_MODULE is set to "fcitx" correctly.
gtk-query-immodules
:gtk 2:
Cannot find
gtk-query-immodules
for gtk 2Cannot find fcitx5 im module for gtk 2.
gtk 3:
Found
gtk-query-immodules
for gtk3.24.34
at/usr/bin/gtk-query-immodules-3.0
. Version Line:Found fcitx5 im modules for gtk
3.24.34
.Gtk IM module cache:
gtk 2:
Cannot find immodules cache for gtk 2
Cannot find fcitx5 im module for gtk 2 in cache.
gtk 3:
Found immodules cache for gtk
3.24.34
at/usr/lib/gtk-3.0/3.0.0/immodules.cache
. Version Line:Found fcitx5 im modules for gtk
3.24.34
.gtk 4:
Cannot find immodules cache for gtk 4
Cannot find fcitx5 im module for gtk 4 in cache.
Gtk IM module files:
gtk 2:
All found Gtk 2 immodule files exist.
gtk 3:
All found Gtk 3 immodule files exist.
gtk 4:
All found Gtk 4 immodule files exist.
Configuration:
Fcitx Addons:
Addon Config Dir:
Found fcitx5 addon config directory:
/usr/share/fcitx5/addon
.Addon List:
Found 20 enabled addons:
Found 0 disabled addons:
Addon Libraries:
All libraries for all addons are found.
User Interface:
Found 2 enabled user interface addons:
Input Methods:
/home/piroro/.config/fcitx5/profile
:Log:
date
:/home/piroro/.config/fcitx5/crash.log
:/home/piroro/.config/fcitx5/crash.log
not found.Warning: the output of fcitx5-diagnose contains sensitive information, including the distribution name, kernel version, name of currently running programs, etc.
Though such information can be helpful to developers for diagnostic purpose, please double check and remove as necessary before posting it online publicly.