This one bug has been driving me nuts for months. Seemingly at random, mouse-sharing would stop working until the VM got restarted.
Turns out that just by hovering the mouse cursor over Pe's "view splitter", that tiny little bar sitting over the scrollbar (see Pe's PSplitter.{h,cpp} files), was enough to trigger the bug.
That hovering causes a cursor shape change, but not via BView::SetViewCursor(), which apparently does not involves calling the B_SET_CURSOR_SHAPE accelerant hook, but via BApplication::SetCursor(), which does end up hitting said hook.
TL;DR: vmware_video's accelerant's SET_CURSOR_SHAPE() hook somehow breaks mouse sharing when invoked.
To confirm that the issue is with said accelerant hook, I just disabled it, and can't trigger the breakage anymore. The cursor still changes shape when hovering the Pe view splitter, so I'm yet to see any downsides in just disabling the problematic hook (will open a PR doing just that next).