Hacker News new | ask | show | jobs
by user142 91 days ago
Surely programs can know where the pointer is as long as it is over a window that belongs to the program. Otherwise hover wouldn't work.
1 comments

Hover is done by the client telling the compositor it would like the cursor to change its shape if it is over a certain area the client is drawing. But the client does not know where the cursor is or where on the screen the client is (or even if the client is visible at all).