Skip to content

Mouse sharing stops working when the vmware accelerant SET_CURSOR_SHAPE hook is invoked. #50

@OscarL

Description

@OscarL

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions