mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-03 19:32:42 +02:00
clear CanHost dependency from SendsInactiveCursor.
This commit is contained in:
parent
15cb4300a5
commit
1b95728870
1 changed files with 3 additions and 7 deletions
|
@ -42,16 +42,12 @@ func (manager *WebRTCManagerCtx) handle(data []byte, session types.Session) erro
|
||||||
}
|
}
|
||||||
|
|
||||||
x, y := int(payload.X), int(payload.Y)
|
x, y := int(payload.X), int(payload.Y)
|
||||||
|
|
||||||
// handle active cursor movement
|
|
||||||
if session.IsHost() {
|
if session.IsHost() {
|
||||||
|
// handle active cursor movement
|
||||||
manager.desktop.Move(x, y)
|
manager.desktop.Move(x, y)
|
||||||
manager.curPosition.Set(x, y)
|
manager.curPosition.Set(x, y)
|
||||||
return nil
|
} else {
|
||||||
}
|
// handle inactive cursor movement
|
||||||
|
|
||||||
// handle inactive cursor movement
|
|
||||||
if session.Profile().CanHost {
|
|
||||||
session.SetCursor(types.Cursor{
|
session.SetCursor(types.Cursor{
|
||||||
X: x,
|
X: x,
|
||||||
Y: y,
|
Y: y,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue