surface: redesign state
-
Rename invalid
tocommitted
- better ideas welcome! -
Move subsurface_position
inwlr_subsurface
-
Fix sx
/sy
handling -
Don't monkey-patch surface_damage
andbuffer_damage
- add a new buffer damage region instead -
Make current
andpending
embedded structs -
Add a previous
state -
Update cursor hotspot with buffer position
Test plan:
- Make sure damage tracking works on surfaces and subsurfaces (try gnome-calculator)
- Try with scaled and transformed outputs
- Try wleird's cursor example
See #1065 (closed)