summaryrefslogtreecommitdiff
path: root/debug.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-05 16:30:06 -0600
committerJeff Carr <[email protected]>2025-02-05 16:30:06 -0600
commitefebe00640b7b44821c37fd2c9479c579bebc392 (patch)
treec5bcf67022d282ede1d2ab890aada1065a3cfa4f /debug.go
parent07f6b7842e9ee6c933be365ab24839aec5c07298 (diff)
window dragging works fairly well
Diffstat (limited to 'debug.go')
-rw-r--r--debug.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/debug.go b/debug.go
index ff78f93..bde2cd1 100644
--- a/debug.go
+++ b/debug.go
@@ -30,9 +30,13 @@ func (w *guiWidget) dumpWindows(s string) {
log.Log(ERROR, "dump w.TK == nil", w.node.WidgetId, w.node.WidgetType, w.String())
return
}
- s += fmt.Sprintf("(%d,%d)", w.force.w0, w.force.h0)
if w.node.WidgetType == widget.Window {
+ s += fmt.Sprintf(" F(%d,%d)", w.force.w0, w.force.h0)
+ // can't set this here. doesn't work
+ // w.full.w0 = w.force.w0
+ // w.full.h0 = w.force.h0
w.dumpWidget("dumpWindow() " + s)
+ w.windowFrame.dumpWidget("dumpFrame() " + s)
}
for _, child := range w.children {