summaryrefslogtreecommitdiff
path: root/libnotify.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-03 11:59:45 -0600
committerJeff Carr <[email protected]>2025-03-03 11:59:45 -0600
commit76e15fa1df21d1d37a294983184a6a1df6812e07 (patch)
tree4bb20c359fb2523191e7b15a426f59b039d965fb /libnotify.go
parent75014f4b284d3e88266c1ae319ee9bbdb86d3ad2 (diff)
start looking into proper mutex locking
Diffstat (limited to 'libnotify.go')
-rw-r--r--libnotify.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/libnotify.go b/libnotify.go
index 58ce3b3..01e4305 100644
--- a/libnotify.go
+++ b/libnotify.go
@@ -52,15 +52,14 @@ func makeNewInternalWidget(wId int) *guiWidget {
return tk
}
-func makeClock(wId int) {
+func makeNotifyClock(wId int) {
if me.treeRoot == nil {
log.Info("gogui makeClock() error. treeRoot == nil")
return
}
me.notify.clock.tk = makeNewInternalWidget(wId)
me.notify.clock.tk.dumpWidget("init() clock")
- w, h := me.baseGui.MousePosition()
- me.notify.clock.tk.MoveToOffset(w, h)
+ me.notify.clock.tk.MoveToOffset(0, 0)
me.notify.clock.tk.labelN = time.Now().Format("15:04:05")
me.notify.clock.tk.frame = false
me.notify.clock.tk.setColorLabel()
@@ -151,7 +150,7 @@ func setBottomBG() {
return
}
tk := me.BG.tk
- log.Info("found BG. setting to bottom", tk.cuiName)
+ // log.Info("found BG. setting to bottom", tk.cuiName)
if tk.v == nil {
w, h := me.baseGui.Size()
a := -1