diff options
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 } |
