summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-06 14:46:32 -0600
committerJeff Carr <[email protected]>2025-02-06 14:46:32 -0600
commit93e87a05c7220f1a8dd7ac2e8dc43b123f6e0f71 (patch)
treedfac2d257144a33fc3ebc39a03b38d295703c0cb /structs.go
parentbc15e6c87955d9ba837fe125ca2c53737afaf014 (diff)
dragging a windows keeps it put
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index 1a8ed5b..e57c69a 100644
--- a/structs.go
+++ b/structs.go
@@ -119,6 +119,7 @@ func (r *rectType) Height() int {
// settings that are window specific
type window struct {
windowFrame *guiWidget // this is the frame for a window widget
+ wasDragged bool // indicates the window was dragged. This keeps it from being rearranged
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?