Skip to content

fix: enable input method switching under Wayland#2278

Open
breakatop wants to merge 1 commit intodavatorium:nextfrom
breakatop:wayland-im-switch
Open

fix: enable input method switching under Wayland#2278
breakatop wants to merge 1 commit intodavatorium:nextfrom
breakatop:wayland-im-switch

Conversation

@breakatop
Copy link
Copy Markdown

  1. Release the shortcut Control+Space for switching input methods; change the original Control+Space to Alt+Return.
  2. Implement pre‑edit, commit, and delete, allowing fcitx5 to function properly.

@lbonn lbonn self-requested a review March 31, 2026 09:31
@lbonn
Copy link
Copy Markdown
Collaborator

lbonn commented Apr 12, 2026

I've tested it and there is a bad interaction with the -click-to-exit option (on by default) we just merged in #2272, probably due to the additional layer surface.

Input method switching appears on the top-left of the screen instead of where the text input is. Problem disappears with -no-click-to-exit

But it's not exactly a problem with these changes I suppose, maybe acceptable as a first solution

Comment thread source/wayland/display.c
zwp_text_input_v3_commit(text_input);
}
static void text_input_leave(void *data, struct zwp_text_input_v3 *text_input,
struct wl_surface *surface) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened with these indentation changes? Better leave them aligned as clang-format does. Also in text_input_commit_string

Comment thread source/keyb.c
{.id = ROW_SELECT,
.name = "kb-row-select",
.binding = "Control+space",
.binding = "Alt+Return",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To change in doc/rofi-keys.5.markdown.

Maybe Alt+space is closer to the original binding, not sure what's the most intuitive here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants