summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-05 15:04:40 -0600
committerJeff Carr <[email protected]>2025-02-05 15:04:40 -0600
commit83e9787e753242ec5418e0228f76356e4e655128 (patch)
treee1575b42f7475956b31828c80c9dc9ee93caf96d /structs.go
parent85eda6aeb8f6958fc34f677c26e9bfe726382da4 (diff)
window drag offset works
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index ce06d02..3fde7ef 100644
--- a/structs.go
+++ b/structs.go
@@ -101,6 +101,8 @@ type guiWidget struct {
node *tree.Node // the pointer back to the tree
windowFrame *guiWidget // this is the frame for a window widget
internal bool // indicates the widget is internal to gocui and should be treated differently
+ dragW int // when dragging a window, this is the offset to the mouse position
+ dragH int // when dragging a window, this is the offset to the mouse position
hasTabs bool // does the window have tabs?
currentTab bool // the visible tab
value string // ?