Skip to content

feat: ipc to get cursor position#592

Open
maskudo wants to merge 1 commit intomangowm:mainfrom
maskudo:cursor-position-ipc
Open

feat: ipc to get cursor position#592
maskudo wants to merge 1 commit intomangowm:mainfrom
maskudo:cursor-position-ipc

Conversation

@maskudo
Copy link

@maskudo maskudo commented Jan 19, 2026

Description

  • added ipc to get cursor position

Related Issue

#398

@DreamMaoMao
Copy link
Collaborator

DreamMaoMao commented Jan 20, 2026

This does not meet your requirements because it cannot monitor mouse events and update them in real time. If an ipc event is triggered every time the mouse moves, the load would be too heavy

On the client side, there are ways to detect whether the mouse has entered a certain area, such as quickshell and wayedge. These implementations from the client's perspective have the lowest cost

To sum up, this function should be detected by the client itself. Forcing support on the compositor is too heavy.

@maskudo
Copy link
Author

maskudo commented Jan 20, 2026

It fits my needs of getting cursor position on demand. I just poll the cursor position with a shell script as watching it for every change would be too expensive an operation.

I don't know about its general applicability for all users though.

@DreamMaoMao DreamMaoMao force-pushed the main branch 3 times, most recently from c43f8e3 to 30692f6 Compare January 28, 2026 01:40
@DreamMaoMao DreamMaoMao force-pushed the main branch 3 times, most recently from e357c8f to 6b79a43 Compare February 9, 2026 03:18
@DreamMaoMao DreamMaoMao force-pushed the main branch 3 times, most recently from d31d43c to 68075c0 Compare February 19, 2026 03:27
@DreamMaoMao DreamMaoMao force-pushed the main branch 2 times, most recently from dc016eb to 6b2d694 Compare February 22, 2026 03:52
@DreamMaoMao DreamMaoMao force-pushed the main branch 3 times, most recently from 673ec40 to db30977 Compare March 9, 2026 05:28
@DreamMaoMao DreamMaoMao force-pushed the main branch 2 times, most recently from 17ff2ad to 064bcad Compare March 23, 2026 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants