From 96eac58cf59d2c735cd2b88e4458fff12422e121 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 4 Mar 2025 13:35:13 -0600 Subject: name change libnotify 'menu' to 'icon' --- eventMouseClick.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'eventMouseClick.go') diff --git a/eventMouseClick.go b/eventMouseClick.go index 03e7180..ed3eafe 100644 --- a/eventMouseClick.go +++ b/eventMouseClick.go @@ -43,17 +43,17 @@ func doMouseClick(w int, h int) { win := findWindowUnderMouse() if win == nil { log.Log(INFO, "click() nothing was at:", w, h) - log.Log(INFO, "click() check if", w, h, "is the libnotify menu") - if me.notify.menu.tk != nil && me.notify.menu.tk.gocuiSize.inRect(w, h) { - log.Log(GOCUI, "click() is libnotify menu!") - if me.notify.menu.active { - log.Info("show notify menu here") - setNotifyMenuText("[X]") - me.notify.menu.active = false + log.Log(INFO, "click() check if", w, h, "is the libnotify icon") + if me.notify.icon.tk != nil && me.notify.icon.tk.gocuiSize.inRect(w, h) { + log.Log(GOCUI, "click() is libnotify.icon!") + if me.notify.icon.active { + log.Info("show notify.icon here") + setNotifyIconText("[X]") + me.notify.icon.active = false } else { - log.Info("hide notify menu here") - setNotifyMenuText("[ ]") - me.notify.menu.active = true + log.Info("hide notify.icon here") + setNotifyIconText("[ ]") + me.notify.icon.active = true } return } -- cgit v1.2.3