OK, I've figured out a terrible hack that seems to solve the problem (although it generates constant damage and constant CPU usage):
_X_EXPORT RegionPtr xmir_window_get_dirty(xmir_window *xmir_win) { return &xmir_win->region; /* Terrible hack */
This seems to solve the bug, suggesting xmir_window_get_dirty is returning incorrect damage regions.
It's not definitive and not a fix. But looks like good progress.
OK, I've figured out a terrible hack that seems to solve the problem (although it generates constant damage and constant CPU usage):
_X_EXPORT RegionPtr get_dirty( xmir_window *xmir_win)
xmir_window_
{
return &xmir_win->region; /* Terrible hack */
This seems to solve the bug, suggesting xmir_window_ get_dirty is returning incorrect damage regions.
It's not definitive and not a fix. But looks like good progress.