From a87bdf2ffd80f5e006b5f58ec45fffdad71427bf Mon Sep 17 00:00:00 2001 From: Pieter van Loon Date: Thu, 30 Dec 2021 13:50:02 +0100 Subject: [PATCH] Initialize mouseX and mouseY to -1 --- gui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gui.go b/gui.go index cdb218e..c445e45 100644 --- a/gui.go +++ b/gui.go @@ -144,6 +144,7 @@ func NewGui(mode OutputMode, supportOverlaps bool) (*Gui, error) { g.maxX, g.maxY = screen.Size() } + g.mouseX, g.mouseY = -1, -1 g.BgColor, g.FgColor, g.FrameColor = ColorDefault, ColorDefault, ColorDefault g.SelBgColor, g.SelFgColor, g.SelFrameColor = ColorDefault, ColorDefault, ColorDefault