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

Hide cursor on leave #7806

Merged
merged 4 commits into from
Sep 18, 2024
Merged

Hide cursor on leave #7806

merged 4 commits into from
Sep 18, 2024

Conversation

vaxerski
Copy link
Member

Hides the hw cursor plane when it leaves the output.

Ref #7412

needs testing

@drammelt
Copy link

The hiding part works for moving screens, however when the mouse moves over any window decorations it still appears for a split second then disappears again.

I think it maybe the call from CInputManager::processMouseRequest to CPointerManager::setCursorBuffer as that calls updateCursorBackend -> attemptHardwareCursor which sets the buffer bypassing the screen checks.

@vaxerski
Copy link
Member Author

should be fixed, try now

@drammelt
Copy link

So close, only one thing happening now. when the cursor transitions from one monitor to another and immediately encounters a window decoration or something like waybar the previous screens cursor remains until the current screens cursor leave the decoration/input area.

IMG_20240916_200629_691

@leiserfg
Copy link
Contributor

@drammelt That's two cursors for the price of one.

@vaxerski
Copy link
Member Author

I'd say that's minor and overall better than main so I'll merge this

@vaxerski vaxerski merged commit e6cf643 into main Sep 18, 2024
19 checks passed
leiserfg pushed a commit to leiserfg/Hyprland that referenced this pull request Sep 25, 2024
@vaxerski vaxerski deleted the hide-cursor-on-leave branch November 18, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants