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,10 +102,9 @@ func (w *guiWidget) doWidgetClick() {
log.Log(NOW, "doWidgetClick() if this is the dropdown menu, handle it here?")
case widget.Window:
log.Log(NOW, "doWidgetClick() START on window", w.String())
/*
if me.currentWindow == w.node {
return
}
// if me.currentWindow == w.node {
// return
// }
if me.currentWindow != nil {
var curw *guiWidget
curw = me.currentWindow.TK.(*guiWidget)
@ -113,7 +112,6 @@ func (w *guiWidget) doWidgetClick() {
curw.setColor(&colorWindow)
curw.hideWidgets()
}
*/
me.currentWindow = w.node
log.Log(NOW, "doWidgetClick() set currentWindow to", w.String())