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

Using focuswindow with follow_mouse=2 will warp cusor but not cursor focus. #4949

Closed
ProtoSharkk opened this issue Mar 3, 2024 · 1 comment · Fixed by #7015
Closed

Using focuswindow with follow_mouse=2 will warp cusor but not cursor focus. #4949

ProtoSharkk opened this issue Mar 3, 2024 · 1 comment · Fixed by #7015
Labels
bug Something isn't working stale Not much going on

Comments

@ProtoSharkk
Copy link

Hyprland Version

System/Version info
Hyprland, built from branch main at commit 1c460e98f870676b15871fe4e5bfeb1a32a3d6d8  (props: bump ver to 0.36.0).
Date: Wed Feb 28 00:32:40 2024
Tag: 

flags: (if any)

Bug or Regression?

Bug

Description

If the follow_mouse variable is set to 2, using the focuswindow dispatcher will warp the cursor to the focused window but not move cursor focus. The cursor focus will stay on the previously focused window. In order to move cursor focus, you need to either click or move the cursor.

How to reproduce

Set follow_mouse to 2, and no_cursor_warps to false. Select one window and then use the focuswindow dispatcher to move keyboard focus. Try scrolling on the newly focused window, and scroll will apply to the previously focused window.

Crash reports, logs, images, videos

2024-03-03.12-09-31.mp4
@ProtoSharkk ProtoSharkk added the bug Something isn't working label Mar 3, 2024
@vaxerski vaxerski added the stale Not much going on label May 2, 2024
@antonok-edm
Copy link
Contributor

Seemingly related:

  1. Set follow_mouse = 2 and cursor:no_warps = true.
  2. Use a movefocus bind to focus on a window away from the cursor.
  3. Scroll the mouse wheel. Scrolling applies to the newly focused window, despite the cursor hovering over the previous window.
  4. Nudging the cursor by a miniscule amount will return scrolling to the window under the cursor.

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