hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.09k stars 882 forks source link

Appflowy can't input with fcitx5 before lose focus #7443

Closed The-Lost-Light closed 1 month ago

The-Lost-Light commented 2 months ago

Regression?

No

System Info and Version

System/Version info ```sh Hyprland, built from branch at commit 9a09eac79b85c846e3a865a9078a3f8ff65a9259 (props: bump version to 0.42.0). Date: Wed Aug 7 19:17:10 2024 Tag: v0.42.0, commits: 5069 flags: (if any) System Information: System name: Linux Node name: Arch-mono Release: 6.10.6-zen1-1-zen Version: #1 ZEN SMP PREEMPT_DYNAMIC Mon, 19 Aug 2024 17:02:05 +0000 GPU information: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106M [GeForce RTX 2060 Max-Q] [10de:1f12] (rev a1) (prog-if 00 [VGA controller]) 04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1636] (rev c5) (prog-if 00 [VGA controller]) NVRM version: NVIDIA UNIX x86_64 Kernel Module 555.58.02 Tue Jun 25 01:39:15 UTC 2024 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: ======Config-Start====== Config File: /home/mono/.config/hypr/hyprland.conf: Read Succeeded $hyprland = ~/.config/hypr/hyprland source = $hyprland/enviroment_variables/*.conf source = $hyprland/executes.conf source = $hyprland/options.conf source = $hyprland/monitors.conf source = $hyprland/workspace_rules.conf source = $hyprland/window_rules.conf source = $hyprland/binds/*.conf Config File: /home/mono/.config/hypr/hyprland/enviroment_variables/nvidia.conf: Read Succeeded # NVIDIA Specific env = XDG_SESSION_TYPE,wayland # env = GBM_BACKEND,nvidia-drm env = __GLX_VENDOR_LIBRARY_NAME,nvidia Config File: /home/mono/.config/hypr/hyprland/enviroment_variables/system.conf: Read Succeeded # Set language env = LANG, zh_TW.UTF-8 # Toolkit Backend Variables env = GDK_BACKEND, wayland,x11,* env = QT_QPA_PLATFORM, wayland;xcb env = SDL_VIDEODRIVER, wayland env = CLUTTER_BACKEND, wayland #XDG Specifications env = XDG_CURRENT_DESKTOP, Hyprland env = XDG_SESSION_TYPE, wayland env = XDG_SESSION_DESKTOP, Hyprland # Qt Variables env = QT_AUTO_SCREEN_SCALE_FACTOR, 1 env = QT_WAYLAND_DISABLE_WINDOWDECORATION, 1 # Sync the GTK and QT theme env = QT_QPA_PLATFORMTHEME, gtk2 # Cursor Theme env = HYPRCURSOR_THEME, Bibata-Modern-Ice-hlc env = HYPRCURSOR_SIZE, 24 env = XCURSOR_THEME, Bibata-Modern-Ice env = XCURSOR_SIZE, 24 Config File: /home/mono/.config/hypr/hyprland/executes.conf: Read Succeeded # Daemon exec-once = dbus-update-activation-environment --systemd --all exec-once = systemctl --user import-environment QT_QPA_PLATFORMTHEME exec-once = systemctl start --user xdg-desktop-portal-hyprland exec-once = systemctl start --user xdg-desktop-portal exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # exec-once = hyprpm reload -n exec-once = wl-clip-persist --clipboard regular --reconnect-tries 0 exec-once = clipse -listen exec-once = ags exec-once = swaync exec-once = nm-applet --indicator exec-once = sleep 3; blueman-applet exec-once = fcitx5 -d exec-once = hyprpaper # exec-once = hypridle exec-once = nwg-drawer -fm nemo -nofs -ovl -r -term kitty -wm hyprland # Application autostart exec-once = discord --start-minimized --enable-wayland-ime Config File: /home/mono/.config/hypr/hyprland/options.conf: Read Succeeded general { gaps_out = 10 border_size = 2 col.active_border = 0xccf5c2e7 col.inactive_border = 0x00000000 resize_on_border = true allow_tearing = true } decoration { rounding = 10 shadow_range = 12 col.shadow = 0x44f5c2e7 col.shadow_inactive = 0x00000000 dim_special = 0.4 blur { size = 2 passes = 2 ignore_opacity = true popups = true } } animations { animation = windows, 1, 4, default, popin 60% animation = windowsOut, 1, 5, default, slide animation = workspaces, 1, 6, default, slide } input { kb_options = caps:ctrl_modifier touchpad { natural_scroll = true drag_lock = true } } gestures { workspace_swipe = true workspace_swipe_fingers = 4 } misc { disable_splash_rendering = true force_default_wallpaper = 0 animate_manual_resizes = true vrr = 2 disable_autoreload = true } xwayland { force_zero_scaling = true } cursor { inactive_timeout = 5 default_monitor = HDMI-A-1 hide_on_key_press = true hide_on_touch = true } render { direct_scanout = true } debug { error_position = 1 } dwindle { pseudotile = true preserve_split = true } plugin { hyprbars { bar_color = rgb(24273a) bar_height = 20 bar_text_font = Noto Sans CJK TC bar_precedence_over_border = true hyprbars-button = rgb(ee99a0), 10, , hyprctl dispatch killactive hyprbars-button = rgb(a6da95), 10, , hyprctl dispatch fullscreen 1 hyprbars-button = rgb(8087a2), 10, , hyprctl dispatch movetoworkspacesilent special } } Config File: /home/mono/.config/hypr/hyprland/monitors.conf: Read Succeeded monitor = , highres, auto,1 monitor = eDP-1, highres, auto, 1.25 monitor = desc:Philips Consumer Electronics Company PHL 275M8RZ UK52208002066, highrr, auto, 1.25, bitdepth, 10 Config File: /home/mono/.config/hypr/hyprland/workspace_rules.conf: Read Succeeded workspace = 1, name:1, monitor:eDP-1, default:true, persistent:true workspace = 2, naem:2, monitor:HDMI-A-1, default:true workspace = 3, naem:3, monitor:HDMI-A-1 workspace = 4, naem:4, monitor:HDMI-A-1 workspace = 5, naem:5, monitor:HDMI-A-1 workspace = 6, naem:6, monitor:HDMI-A-1 workspace = 7, naem:7, monitor:HDMI-A-1 workspace = 8, naem:8, monitor:HDMI-A-1 workspace = 9, naem:9, monitor:HDMI-A-1 workspace = 10, naem:10, monitor:HDMI-A-1 Config File: /home/mono/.config/hypr/hyprland/window_rules.conf: Read Succeeded # System windowrulev2 = opacity 1 0.9, floating:1 windowrulev2 = plugin:hyprbars:nobar, floating:1 windowrulev2 = pin, title:(Picture in picture) windowrulev2 = pin, class:(polkit-gnome-authentication-agent-1) windowrulev2 = float, class:(clipse) windowrulev2 = stayfocused, class:(clipse) windowrulev2 = size 800 400, class:(clipse) windowrulev2 = noborder, class:(clipse) windowrulev2 = noshadow, class:(clipse) # Xwayland Bridge windowrulev2 = opacity 0.0 override 0.0 override, class:(xwaylandvideobridge) windowrulev2 = noanim, class:(xwaylandvideobridge) windowrulev2 = noinitialfocus, class:(xwaylandvideobridge) windowrulev2 = maxsize 1 1, class:(xwaylandvideobridge) windowrulev2 = noblur, class:(xwaylandvideobridge) # Component windowrulev2 = maximize, class:(pwvucontrol) windowrulev2 = float, class:(blueman-manager) windowrulev2 = float, class:(nm-connection-editor) windowrulev2 = float, class:(gvfs) windowrulev2 = float, class:(xdg-desktop-portal-gtk) # Application windowrulev2 = opacity 0.8 0.7, class:(kitty) windowrulev2 = float, class:(kitty) windowrulev2 = size 90% 80%, class:(kitty) windowrulev2 = float, class:(com.gabm.satty) windowrulev2 = opacity 0.7 0.5,class:class:(neovide) windowrulev2 = maximize, class:(discord) windowrulev2 = maximize, class:(vesktop) # Flutter Applications windowrulev2 = fullscreenstate 0 2, class:(localsend) windowrulev2 = fullscreenstate 0 2, class:(AppFlowy) Config File: /home/mono/.config/hypr/hyprland/binds/applications.conf: Read Succeeded $Term = kitty # Application # terminal bind = SUPER, space, exec, [tile] $Term # file browser bind = SUPER, E, exec, $Term yazi # app launcher bind = SUPER, A, exec, nwg-drawer -fm yazi -nofs -ovl -term kitty -wm hyprland # notification bind = SUPER, N, exec, swaync-client -t # lock screen bind = SUPER, L, exec, hyprlock -q # screenshot bind = , Print, exec, hyprshot -m window -z --raw | satty -f - bind = SUPER, Print, exec, hyprshot -m region -z --raw | satty -f - bind = SUPER SHIFT, Print, exec, hyprshot -m output -z --raw | satty -f - # clipboard bind = SUPER, V, exec, $Term --class clipse -e 'clipse' Config File: /home/mono/.config/hypr/hyprland/binds/global.conf: Read Succeeded # Workspace # close windows bind = SUPER, Q, killactive, # Maxmize/full screen bind = SUPER, G, fullscreen, 1 bind = SUPER SHIFT, G, fullscreen, 0 # float/pin windows bind = SUPER, F, togglefloating bind = SUPER SHIFT, F, fullscreenstate, -1 2 bind = SUPER, P, pin bind = SUPER SHIFT, P, pseudo # Move/resize windows bindm = SUPER, mouse:272, movewindow bindm = SUPER, mouse:273, resizewindow bind = SUPER, R, submap, resize submap = resize binde = , left, resizeactive, -20 0 bind = , left, submap, reset binde = , right, resizeactive, 20 0 bind = , right, submap, reset binde = , up, resizeactive, 0 -20 bind = , up, submap, reset binde = , down, resizeactive, 0 20 bind = , down, submap, reset bind = SUPER, R, submap, reset submap = reset # Minimize/show window bind = SUPER, H, movetoworkspacesilent, special bind = SUPER, M, togglespecialworkspace # Move focus bind = SUPER SHIFT, left, movefocus, l bind = SUPER SHIFT, right, movefocus, r bind = SUPER SHIFT, up, movefocus, u bind = SUPER SHIFT, down, movefocus, d # Move window bind = CTRL, left, movewindow, l bind = CTRL, right, movewindow, r bind = CTRL, up, movewindow, u bind = CTRL, down, movewindow, d # Switch workspaces bind = SUPER, 1, workspace, 1 bind = SUPER, 2, workspace, 2 bind = SUPER, 3, workspace, 3 bind = SUPER, 4, workspace, 4 bind = SUPER, 5, workspace, 5 bind = SUPER, 6, workspace, 6 bind = SUPER, 7, workspace, 7 bind = SUPER, 8, workspace, 8 bind = SUPER, 9, workspace, 9 bind = SUPER, 0, workspace, 10 bind = SUPER, right, workspace, m+1 bind = SUPER, left, workspace, m-1 bind = SUPER, mouse_down, workspace, m-1 bind = SUPER, mouse_up, workspace, m+1 # Move active window to a workspace bind = CTRL, 1, movetoworkspace, 1 bind = CTRL, 2, movetoworkspace, 2 bind = CTRL, 3, movetoworkspace, 3 bind = CTRL, 4, movetoworkspace, 4 bind = CTRL, 5, movetoworkspace, 5 bind = CTRL, 6, movetoworkspace, 6 bind = CTRL, 7, movetoworkspace, 7 bind = CTRL, 8, movetoworkspace, 8 bind = CTRL, 9, movetoworkspace, 9 bind = CTRL, 0, movetoworkspace, 10 # Move active window to a workspace silent bind = CTRL SHIFT, 1, movetoworkspacesilent, 1 bind = CTRL SHIFT, 2, movetoworkspacesilent, 2 bind = CTRL SHIFT, 3, movetoworkspacesilent, 3 bind = CTRL SHIFT, 4, movetoworkspacesilent, 4 bind = CTRL SHIFT, 5, movetoworkspacesilent, 5 bind = CTRL SHIFT, 6, movetoworkspacesilent, 6 bind = CTRL SHIFT, 7, movetoworkspacesilent, 7 bind = CTRL SHIFT, 8, movetoworkspacesilent, 8 bind = CTRL SHIFT, 9, movetoworkspacesilent, 9 bind = CTRL SHIFT, 0, movetoworkspacesilent, 10 # Swap window/workspace bind = SUPER, S, swapactiveworkspaces, eDP-1 HDMI-A-1 # dwindle bind = SUPER SHIFT, S, swapsplit bind = SUPER, J, togglesplit # bind = SUPER SHIFT, R, exec, hyprctl reload Config File: /home/mono/.config/hypr/hyprland/binds/system.conf: Read Succeeded $scripts = ~/.config/hypr/scripts/ # System keybind # Media control bind = , XF86AudioPlay, exec, playerctl --player playerctld play-pause bind = , XF86AudioPause, exec, playerctl --player playerctld pause bind = , XF86AudioStop, exec, playerctl --player playerctld stop bind = , XF86AudioNext, exec, playerctl --player playerctld next bind = , XF86AudioPrev, exec, playerctl --player playerctld previous # Change volume bind = , xf86audioraisevolume, exec, $scripts/audio.nu speaker increase bind = , xf86audiolowervolume, exec, $scripts/audio.nu speaker decrease bind = , xf86audiomute, exec, $scripts/audio.nu speaker toggle bind = , xf86audiomicmute, exec, $scripts/audio.nu microphone toggle # Change brightness bind = , xf86monbrightnessup, exec, $scripts/brightness.nu increase bind = , xf86monbrightnessdown, exec, $scripts/brightness.nu decrease # Change keyboard brightness bind = , xf86kbdbrightnessup, exec, $scripts/brightness.nu increase --keyboard bind = , xf86kbdbrightnessdown, exec, $scripts/brightness.nu decrease --keyboard # G14 # ASUS Armory crate key bind = ,156, exec, rog-control-center bind = ,211, exec, asusctl profile -n; pkill -SIGRTMIN+1 waybar ======Config-End======== ```

Description

AppFlowy can't type cjk word using fcitx5 and can't move cursor by arrow key. However, once it lose focus and back then it work fine.

According to https://github.com/hyprwm/Hyprland/pull/7104#issuecomment-2275596377 Maybe he settings sent by hyprland are not accepted by this app when it initial?

How to reproduce

  1. Open Appflowy
  2. can't type cjk word using fcitx5 and can't move cursor by arrow key.
  3. change focus to other window or workspace
  4. then the IME work fine

Crash reports, logs, images, videos

No response

sungyoonc commented 1 month ago

Can you check the latest git?

The-Lost-Light commented 1 month ago

This fixed in git! Thanks you.