switching windows is starting to work

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-29 23:10:15 -06:00
parent 5ef1bd1021
commit 467b10d3f8
1 changed files with 10 additions and 12 deletions

View File

@ -102,18 +102,16 @@ func (w *guiWidget) doWidgetClick() {
log.Log(NOW, "doWidgetClick() if this is the dropdown menu, handle it here?") log.Log(NOW, "doWidgetClick() if this is the dropdown menu, handle it here?")
case widget.Window: case widget.Window:
log.Log(NOW, "doWidgetClick() START on window", w.String()) log.Log(NOW, "doWidgetClick() START on window", w.String())
/* // if me.currentWindow == w.node {
if me.currentWindow == w.node { // return
return // }
} if me.currentWindow != nil {
if me.currentWindow != nil { var curw *guiWidget
var curw *guiWidget curw = me.currentWindow.TK.(*guiWidget)
curw = me.currentWindow.TK.(*guiWidget) curw.unsetCurrent()
curw.unsetCurrent() curw.setColor(&colorWindow)
curw.setColor(&colorWindow) curw.hideWidgets()
curw.hideWidgets() }
}
*/
me.currentWindow = w.node me.currentWindow = w.node
log.Log(NOW, "doWidgetClick() set currentWindow to", w.String()) log.Log(NOW, "doWidgetClick() set currentWindow to", w.String())