Hyprland: Cannot type since new text-input-v3 with Fcitx PreferKeyEvent

Hyprland Version

System/Version info
Hyprland, built from branch  at commit fe7b748eb668136dd0558b7c8279bfcd7ab4d759  (props: bump version to 0.39.1).
Date: Tue Apr 16 16:01:03 2024
Tag: v0.39.1, commits: 4460

flags: (if any)


System Information:
System name: Linux
Node name: archlinux
Release: 6.8.8-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Sun, 28 Apr 2024 15:59:47 +0000


GPU information:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106M [GeForce RTX 2070 Mobile / Max-Q Refresh] [10de:1f14] (rev a1) (prog-if 00 [VGA controller])


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:



Bug or Regression?

Bug

Description

Hi! I updated my system yesterday night and today I am having issue when moving the focus from a window to another. After moving the focus, my I can type in the active window but most of the keystrokes wouldn’t get through (arrow keys and backspace mostly).

If I open a terminal, then focus to a browser, then focus back to the terminal, I can see the text focus is on the browser address bar and some keys bindings, such as Ctrl+S would open a prompt to save the web page, even tough the active window is the terminal.

Additional observations:

  • Moving between terminal windows doesn’t reproduce the issue.
  • Moving the focus back and forth between the same windows fixes the focus issue.
  • Opening a new window and closing it immediatly to return to the previous window also reassigns the focus correctly.

I am using Fcitx v5.1.9, killing this process resolves the issue.

I tried hyprland-git but it is even worse, I cannot type on any window except a terminal (Qt, GTK and Electron apps all fail to register keystrokes).

How to reproduce

  1. Launch Fcitx
  2. Launch a terminal such as Kitty.
  3. Move focus to a GTK app such as Firefox.
  4. Move focus back to the terminal.
  5. Tap “space” key, it should register
  6. Tab “backspace” key, it should not register.

Crash reports, logs, images, videos

No response

About this issue

  • Original URL
  • State: open
  • Created 2 months ago
  • Reactions: 1
  • Comments: 19 (7 by maintainers)

Most upvoted comments

I’ve read this issue before filing mine, I believed it was a different issue as the solution didn’t work. Switching to hyprland-git doesn’t solve this issue, quite the opposite, most windows are not registering the keyboard. I had to switch back to hyprland in order to get it working.