mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 23:55:39 +00:00
ui/app: only schedule a redraw when events are available
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+3
-2
@@ -238,8 +238,9 @@ func (w *Window) event(e Event) {
|
||||
needAck := false
|
||||
switch e := e.(type) {
|
||||
case input.Event:
|
||||
w.router.Add(e)
|
||||
w.setNextFrame(time.Time{})
|
||||
if w.router.Add(e) {
|
||||
w.setNextFrame(time.Time{})
|
||||
}
|
||||
case *CommandEvent:
|
||||
needAck = true
|
||||
case StageEvent:
|
||||
|
||||
Reference in New Issue
Block a user