Skip to content

wayland supp #783

Closed
Closed

Description

@1framepersomtimes

Hi got a issue on wayland unfortunately when i run this


import (
	"fmt"
	"time"

	"github.com/go-vgo/robotgo"
)

func main() {
	for i := 0; i < 100; i++ {
		x, y := robotgo.Location()
		fmt.Printf("Position: %d, %d\n", x, y)
		time.Sleep(1 * time.Second)
	}
}

im not able to get mouse pos updates nor move the mouse i only get one update or sometimes none
im building with
go build -tags libei .

also the Click function works fine

Activity

  1. breece1991 commented on Aug 10, 2026

    @breece1991
  2. added 2 commits that reference this issue on Sep 9, 2026
  3. PushpakAg commented on Sep 16, 2026

    @PushpakAg

    I'd check if the robotgo.Location() function is compatible with Wayland, as it seems like the mouse position isn't updating consistently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions