Got a bunch of stuff going on here

the main is thing is that I hammered one a way of showing data from an
ibt
This commit is contained in:
2026-02-20 21:51:57 +00:00
parent c071730337
commit 6a37d7e97c
10 changed files with 474 additions and 36 deletions
+3 -3
View File
@@ -249,11 +249,11 @@ func (d *CDashDisplay) updateWindowDimensions(win *UIWindow, packet UpdateDimsPa
return nil
}
func (d *CDashDisplay) MoveWindow(wID int16, delta helper.Vector) error {
func (d *CDashDisplay) MoveWindow(wID int16, delta helper.Vector) (UIDimensions, error) {
// Get the window from the layout
window, ok := d.State.Layout.Windows[wID]
if !ok {
return fmt.Errorf("window with ID '%d' doesn't exist", wID)
return UIDimensions{}, fmt.Errorf("window with ID '%d' doesn't exist", wID)
}
// Now we will create new dimensions
@@ -267,7 +267,7 @@ func (d *CDashDisplay) MoveWindow(wID int16, delta helper.Vector) error {
Dims: newDimensions,
}
return d.updateWindowDimensions(window, packet)
return newDimensions, d.updateWindowDimensions(window, packet)
}
func (d *CDashDisplay) ResizeWindow(wID int16, delta helper.Vector) error {