mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
clear CanHost dependency from SendsInactiveCursor.
This commit is contained in:
parent
15cb4300a5
commit
1b95728870
@ -42,16 +42,12 @@ func (manager *WebRTCManagerCtx) handle(data []byte, session types.Session) erro
|
||||
}
|
||||
|
||||
x, y := int(payload.X), int(payload.Y)
|
||||
|
||||
// handle active cursor movement
|
||||
if session.IsHost() {
|
||||
// handle active cursor movement
|
||||
manager.desktop.Move(x, y)
|
||||
manager.curPosition.Set(x, y)
|
||||
return nil
|
||||
}
|
||||
|
||||
// handle inactive cursor movement
|
||||
if session.Profile().CanHost {
|
||||
} else {
|
||||
// handle inactive cursor movement
|
||||
session.SetCursor(types.Cursor{
|
||||
X: x,
|
||||
Y: y,
|
||||
|
Loading…
Reference in New Issue
Block a user