Cursor focus does not update when a focused window appears under focus #12192
Unanswered
kolayne
asked this question in
Bugs - Window management
Replies: 1 comment
-
|
dont think so atm |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hyprland version
Regression
Probably not.
Describe the bug
When a cursor as above a window, and another window becomes focused and appears under the cursor, input from the cursor (e.g., left/right mouse buttons) continues to be delivered to the old window, which is no longer under cursor, until it is moved.
Reproduction steps
(possibly, other similar scenarios exist)
Scenario 1
Scenario 2
System info and config
systeminfo.txt
Fix discussion
I tried looking through the code in search of a place to fix (e.g., by calling
CInputManager::sendMotionEventsToFocused()?). However, it seems like there are a couple of places which lead to this, and this seems to happen on calls to layout methods, e.g.:Hyprland/src/managers/KeybindManager.cpp
Lines 3047 to 3065 in 8e9add2
Hyprland/src/Compositor.cpp
Line 1131 in 8e9add2
and others.
@vaxerski, do you think there is a way to universally fix this, without adding an extra call in every place that might change the window under cursor?
Beta Was this translation helpful? Give feedback.
All reactions