use types.Cursor.

This commit is contained in:
Miroslav Šedivý 2021-11-01 17:31:00 +01:00
parent 1025eedc22
commit 28c22a254b
4 changed files with 10 additions and 12 deletions

View file

@ -52,7 +52,10 @@ func (manager *WebRTCManagerCtx) handle(data []byte, session types.Session) erro
// handle inactive cursor movement
if session.Profile().CanHost {
session.SetCursor(x, y)
session.SetCursor(types.Cursor{
X: x,
Y: y,
})
}
return nil