Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Z-Bolt/OctoScreen.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rwxr-xr-xmain.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/main.go b/main.go
index 4c9c9bc..dc34493 100755
--- a/main.go
+++ b/main.go
@@ -373,11 +373,15 @@ func getSize() (width int, height int, err error) {
}
func setCursor() {
- /*
- if todo: test for new env setting to be defined and not be false {
+ // For reference, see "How to turn on a pointer"
+ // https://github.com/Z-Bolt/OctoScreen/issues/285
+ // and "No mouse pointer when running xinit"
+ // https://www.raspberrypi.org/forums/viewtopic.php?t=139546
+
+ displayCursor := strings.ToLower(os.Getenv("DISPLAY_CURSOR"))
+ if displayCursor != "true" {
return
}
- */
window, err := getRootWindow()
if err != nil {
@@ -397,7 +401,7 @@ func getRootWindow() (*gdk.Window, error) {
if err != nil {
return nil, err
}
-
+
window, err := screen.GetRootWindow()
return window, err