it was not possible to select non-active window with mouse even if a top window is not modal one

This commit is contained in:
Vladimir Markelov 2017-07-04 15:59:21 -07:00
parent b4235b65f2
commit b1dea556bb

View File

@ -450,7 +450,10 @@ func (c *Composer) processMouse(ev Event) {
return
}
}
} else if !c.topWindow().Modal() {
c.activateWindow(view)
return
}
if ev.Key == term.MouseLeft {
c.lastX = ev.X