Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard input doesn't follow active window, when quickly swith between two workspaces back and forth. #5808

Closed
Saco93 opened this issue Apr 30, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Saco93
Copy link

Saco93 commented Apr 30, 2024

Hyprland Version

System/Version info
❯ hyprctl systeminfo                                                                                                                       
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: Saco-Archlinux                                                                                                                  
Release: 6.6.28-1-lts                                                                                                                      
Version: #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 10:11:09 +0000                                                                            
                                                                                                                                           
                                                                                                                                           
GPU information:                                                                                                                           
0b:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c1) (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

Occasionally, when I navigate between workspaces, my keyboard inputs do not follow me but remain active in the last workspace I left. This issue occurs most frequently when I switch from a workspace containing a browser to one with a
terminal. Sometimes, the problem even arises within the same workspace when I switch between windows.

How to reproduce

Suppose I'm working with two workspaces( abbreviated as ws in this text).

In ws-1, I have a browser open, and in ws-2, there's a terminal. Currently, I'm in ws-2.

If I quickly switch to ws-1 and then immediately back to ws-2, all my keyboard inputs are mistakenly sent to the browser in ws-1. To resolve this and redirect my inputs back to the terminal in ws-2, I am forced to switch again to ws-1 and then back to ws-2, only then does the cursor respond in the terminal as expected.

p.s. The issue does not occur when the focus is on an input box in the browser.

Crash reports, logs, images, videos

No response

@Saco93 Saco93 added the bug Something isn't working label Apr 30, 2024
@Saco93
Copy link
Author

Saco93 commented Apr 30, 2024

Here's another issue that I believe may be related.
Previously, I used the command c_w=$(hyprctl activeworkspace -j | jq '.id') && hyprctl dispatch workspace 10 && swaylock && hyprctl dispatch workspace $c_w to lock my screen. This command was supposed to run swaylock in workspace 10 and wait for my input.
However, after an update last week, the command no longer responds to any input post-execution. To resolve this, I modified the command to include a sleep 1 delay, changing it to c_w=$(hyprctl activeworkspace -j | jq '.id') && hyprctl dispatch workspace 10 && sleep 1 && swaylock && hyprctl dispatch workspace $c_w.
With this adjustment, the command functions as it did before the update.

@Elizahone
Copy link

I have the same problem, I fixed it by install the latest version (hyprland-git), but my waybar and pyprland crashed, fortunately, they can be fixed by install latest version too

@yantene
Copy link

yantene commented Apr 30, 2024

I seem to be experiencing a similar issue in my environment.
Initially, I thought it might be a problem with IM (Fcitx or Mozc), but it appears to indeed be an issue with the active window.

I'm leaving this comment so that others who might think it's a Fcitx issue can find this issue through search.


I used to think as mentioned above, but it seems I might have had another issue.

The following issue could be related.

#5815

@sungyoonc
Copy link
Contributor

sungyoonc commented Apr 30, 2024

#5763 It is already fixed in git.

You can either

  • Downgrade fcitx5
  • or use hyprland git version for now

@vaxerski vaxerski closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2024
@joker1007
Copy link

Thank you so much!!

I was very troubled by the same problem. The workaround solves it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants