diff --git a/internal/desktop/xorg/xorg.go b/internal/desktop/xorg/xorg.go index 72dc04e9..e68e58e9 100644 --- a/internal/desktop/xorg/xorg.go +++ b/internal/desktop/xorg/xorg.go @@ -75,7 +75,7 @@ func GetCursorPosition() (int, int) { var x C.int var y C.int C.XCursorPosition(&x, &y) - + return int(x), int(y) } diff --git a/internal/webrtc/manager.go b/internal/webrtc/manager.go index 1039d672..9a0f6ce9 100644 --- a/internal/webrtc/manager.go +++ b/internal/webrtc/manager.go @@ -323,7 +323,7 @@ func (manager *WebRTCManagerCtx) CreatePeer(session types.Session, videoID strin // send initial cursor image cur := manager.desktop.GetCursorImage() cursorChange(cur) - + // send initial cursor position x, y := manager.desktop.GetCursorPosition() cursorPosition(x, y)