zwin-project / zen

The reference compositor implementation of Zwin protocol
https://zwin.dev
MIT License
26 stars 6 forks source link

Cursor hotspot #379

Open Aki-7 opened 1 year ago

Aki-7 commented 1 year ago

Branch v0.2.0-dev

Description

The location in the cursor texture where the cursor interaction actually occurs is called the hotspot. For example, in an arrow texture, this is the location of the tip of the arrow.

The origin of the cursor should be this hotspot, but in the current implementation it is in the upper left corner of the texture rectangle.

When to close this issue

When hot spots are taken into account.