switching windows is starting to work
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
5ef1bd1021
commit
467b10d3f8
22
click.go
22
click.go
|
@ -102,18 +102,16 @@ 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 != nil {
|
||||
var curw *guiWidget
|
||||
curw = me.currentWindow.TK.(*guiWidget)
|
||||
curw.unsetCurrent()
|
||||
curw.setColor(&colorWindow)
|
||||
curw.hideWidgets()
|
||||
}
|
||||
*/
|
||||
// if me.currentWindow == w.node {
|
||||
// return
|
||||
// }
|
||||
if me.currentWindow != nil {
|
||||
var curw *guiWidget
|
||||
curw = me.currentWindow.TK.(*guiWidget)
|
||||
curw.unsetCurrent()
|
||||
curw.setColor(&colorWindow)
|
||||
curw.hideWidgets()
|
||||
}
|
||||
me.currentWindow = w.node
|
||||
|
||||
log.Log(NOW, "doWidgetClick() set currentWindow to", w.String())
|
||||
|
|
Loading…
Reference in New Issue