4 ms·
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.
by user142 6mo 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.
- bandrami 6mo agoHover 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).