diff options
| author | Jeff Carr <[email protected]> | 2025-02-05 12:51:00 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-05 12:51:00 -0600 |
| commit | d75bfa639c6fac0fe5b279aeddb28e4f8d861bb4 (patch) | |
| tree | 023bd4a2d66cd7a053fd588c6a537a4a6b681021 | |
| parent | f1eefc9a06880784269424bd5d8156ce7820b40d (diff) | |
two windows drag at a time
| -rw-r--r-- | size.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -192,6 +192,11 @@ func (tk *guiWidget) setFullSize() bool { tk.full.w0 = r.w0 changed = true } + // widget might be forced to a certain location + if tk.full.w0 < tk.force.w0 { + tk.full.w0 = tk.force.w0 + changed = false + } if tk.full.w1 != r.w1 { tk.full.w1 = r.w1 changed = true @@ -200,6 +205,11 @@ func (tk *guiWidget) setFullSize() bool { tk.full.h0 = r.h0 changed = true } + // widget might be forced to a certain location + if tk.full.h0 < tk.force.h0 { + tk.full.h0 = tk.force.h0 + changed = false + } if tk.full.h1 != r.h1 { tk.full.h1 = r.h1 changed = true |
