Skip to content

Commit 7ac779e

Browse files
committed
Show warning when connection to X server failed
1 parent c3e8de1 commit 7ac779e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ func main() {
191191
if err == nil {
192192
defer xorg.Close()
193193
xorg.TrackWindows(tch, time.Second)
194+
} else {
195+
fmt.Printf("Could not connect to X server: %s\n", err)
196+
fmt.Println("Tracking window manager will be disabled!")
194197
}
195198

196199
// initialize virtual keyboard

0 commit comments

Comments
 (0)