From 326f78c3413a018a52e027fff320b4d054a91083 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 12 Jul 2019 14:05:18 +0200 Subject: [PATCH] ui/app: don't implicitly redraw for each CommandEvent Redrawing should only be scheduled when some UI state has changed. Window has no way to know whether a CommandEvent was ignored by the client, so push the onus to the client to schedule a redraw. Signed-off-by: Elias Naur --- ui/app/window.go | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/app/window.go b/ui/app/window.go index 34053e7c..efacffc7 100644 --- a/ui/app/window.go +++ b/ui/app/window.go @@ -242,7 +242,6 @@ func (w *Window) event(e Event) { w.setNextFrame(time.Time{}) case *CommandEvent: needAck = true - w.setNextFrame(time.Time{}) case StageEvent: w.stage = e.Stage if w.stage > StageDead {