format code.

This commit is contained in:
Miroslav Šedivý 2021-02-21 00:41:04 +01:00
parent 0581ce385c
commit 8f2639412d
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}

View File

@ -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)