How do I query (from code) the current icon/state of the mouse?
The mouse could be hovering over a link in a browser, or showing an I-beam from a terminal.
I don't care about the actual position of the mouse, or what application it is on-- just its visual state.
How can I query ubuntu for what my mouse currently looks like?
I'm on the following version of Ubuntu:
lsb_release --all
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
using gnome flashback:
$echo $XDG_CURRENT_DESKTOP
GNOME-Flashback:Unity
$echo $GDMSESSION
gnome-flashback-metacity
(not sure if any of that is relevant).
I was going to take a 32x32 screenshot starting from my mouse location, and then do a basic image recognition to see what the state is, but that doesn't work either! When you take a screenshot (with say, gnome-screenshot, or shutter), it automatically shows the mouse in its normal icon state despite its icon state when the screenshot is taken.