mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
ui/app/internal/input: redraw if focus events was added
The key queue might generate focus events. Schedule a redraw if so. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -49,6 +49,10 @@ func (q *Router) Frame(ops *ui.Ops) {
|
||||
|
||||
q.pqueue.Frame(ops, &q.handlers)
|
||||
q.kqueue.Frame(ops, &q.handlers)
|
||||
if q.handlers.Updated() {
|
||||
q.wakeup = true
|
||||
q.wakeupTime = time.Time{}
|
||||
}
|
||||
}
|
||||
|
||||
func (q *Router) Add(e input.Event) bool {
|
||||
|
||||
Reference in New Issue
Block a user