diff options
| author | Jeff Carr <[email protected]> | 2025-03-04 13:35:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-04 13:35:13 -0600 |
| commit | 96eac58cf59d2c735cd2b88e4458fff12422e121 (patch) | |
| tree | 51952850cd2178eaf9c4ec2676d9d4877424eed8 /eventMouseClick.go | |
| parent | b8781b1b64a3bc378fe8c12bcecfcad49ebb01c2 (diff) | |
name change libnotify 'menu' to 'icon'
Diffstat (limited to 'eventMouseClick.go')
| -rw-r--r-- | eventMouseClick.go | 20 |
1 files changed, 10 insertions, 10 deletions
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 } |
