From 8f2639412d67c8e1d10d2538c92f59108f9b5f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 21 Feb 2021 00:41:04 +0100 Subject: [PATCH] format code. --- internal/desktop/xorg/xorg.go | 2 +- internal/webrtc/manager.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)