Skip to content

Commit

Permalink
Show warning when connection to X server failed
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Jun 10, 2021
1 parent c3e8de1 commit 7ac779e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ func main() {
if err == nil {
defer xorg.Close()
xorg.TrackWindows(tch, time.Second)
} else {
fmt.Printf("Could not connect to X server: %s\n", err)
fmt.Println("Tracking window manager will be disabled!")
}

// initialize virtual keyboard
Expand Down

0 comments on commit 7ac779e

Please sign in to comment.