mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +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.pqueue.Frame(ops, &q.handlers)
|
||||||
q.kqueue.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 {
|
func (q *Router) Add(e input.Event) bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user