I have little to no knowledge about desktop environments in general.
so I am unsure whether this issue is related to cosmic-comp or smithay.
Therefore, I am posting this issue in cosmic-comp. I apologize if this is actually an issue with smithay.
The problem involves fcitx5 and the input method switch key.
In Korea, there is a key called Hangul used for switching input languages.
This key is usually located at the Alt_R position. Fortunately, xkb provides a korean:ralt_hangul option that maps Alt_R to Hangul.
I use this key to switch input languages, but in Xwayland, this setting is not applied, and it acts as Alt_R.
When I checked the Keysym in smithay's src/xwayland/xwm/surface.rs at line 1022 in the key() function, it was Hangul.
This indicates that xkb is using the correct configuration.
Interestingly, the correct configuration can be applied in Xwayland using the following methods:
Open the ~/.config/cosmic/com.system76.CosmicComp/v1/xkb_config file and save it without making any changes.
Wait for the set_xkb_config call in cosmic-comp to complete.
The input method switches correctly in Xwayland applications.
Additionally, before it started working correctly in Xwayland, I found that the event received by Xwayland was a MappingNotifyEvent.
However, it seems that this event is not being handled by either cosmic-comp or smithay.
Running Chromium version 130 or later with Wayland options that support text_input_v3 seems to trigger this MappingNotifyEvent, though I am not sure why.
I have little to no knowledge about desktop environments in general. so I am unsure whether this issue is related to cosmic-comp or smithay. Therefore, I am posting this issue in cosmic-comp. I apologize if this is actually an issue with smithay.
The problem involves fcitx5 and the input method switch key.
In Korea, there is a key called
Hangul
used for switching input languages. This key is usually located at theAlt_R
position. Fortunately, xkb provides akorean:ralt_hangul
option that mapsAlt_R
toHangul
. I use this key to switch input languages, but in Xwayland, this setting is not applied, and it acts asAlt_R
.When I checked the Keysym in smithay's
src/xwayland/xwm/surface.rs
at line 1022 in thekey()
function, it wasHangul
. This indicates that xkb is using the correct configuration.Interestingly, the correct configuration can be applied in Xwayland using the following methods:
~/.config/cosmic/com.system76.CosmicComp/v1/xkb_config
file and save it without making any changes.set_xkb_config
call in cosmic-comp to complete.Additionally, before it started working correctly in Xwayland, I found that the event received by Xwayland was a
MappingNotifyEvent.
However, it seems that this event is not being handled by either cosmic-comp or smithay.Running Chromium version 130 or later with Wayland options that support text_input_v3 seems to trigger this
MappingNotifyEvent
, though I am not sure why.