diff options
| author | Jeff Carr <[email protected]> | 2023-04-26 11:18:26 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-26 11:18:26 -0500 |
| commit | 4c353421343966912124aa8ad612f0fa72685b0b (patch) | |
| tree | 863c658146c323d83a5a90e6d45d7ffcc6128c89 /toolkit/gocui/click.go | |
| parent | e0269b216e1bbd04c1f2f8d6f9e6f3140a219870 (diff) | |
gocui: tracking windows and tabs separately
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/click.go')
| -rw-r--r-- | toolkit/gocui/click.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toolkit/gocui/click.go b/toolkit/gocui/click.go index 21a964c..6f9aa06 100644 --- a/toolkit/gocui/click.go +++ b/toolkit/gocui/click.go @@ -21,10 +21,17 @@ func (w *cuiWidget) doWidgetClick() { me.rootNode.redoColor(true) case toolkit.Window: me.rootNode.hideWidgets() + if w.hasTabs { + // w.isCurrent = false + w.isCurrent = true + } else { + w.isCurrent = true + } w.placeWidgets() w.showWidgets() case toolkit.Tab: me.rootNode.hideWidgets() + w.isCurrent = true w.placeWidgets() w.showWidgets() case toolkit.Group: |
