cursor position bypass desktop module.

This commit is contained in:
Miroslav Šedivý 2021-02-28 18:50:32 +01:00
parent 66618b9e62
commit 663270b0f5
6 changed files with 11 additions and 27 deletions

View file

@ -86,7 +86,6 @@ func (manager *WebRTCManagerCtx) Start() {
Msgf("webrtc starting")
manager.curImage.Start()
manager.curPosition.Start()
}
func (manager *WebRTCManagerCtx) Shutdown() error {
@ -314,7 +313,7 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin
manager.curPosition.AddListener(&cursorPosition)
// send initial cursor image
entry, err := manager.curImage.GetCurrent()
entry, err := manager.curImage.Get()
if err == nil {
cursorImage(entry)
} else {
@ -322,7 +321,7 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin
}
// send initial cursor position
x, y := manager.curPosition.GetCurrent()
x, y := manager.curPosition.Get()
cursorPosition(x, y)
})