mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +00:00
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 <mail@eliasnaur.com>
This commit is contained in:
@@ -242,7 +242,6 @@ func (w *Window) event(e Event) {
|
|||||||
w.setNextFrame(time.Time{})
|
w.setNextFrame(time.Time{})
|
||||||
case *CommandEvent:
|
case *CommandEvent:
|
||||||
needAck = true
|
needAck = true
|
||||||
w.setNextFrame(time.Time{})
|
|
||||||
case StageEvent:
|
case StageEvent:
|
||||||
w.stage = e.Stage
|
w.stage = e.Stage
|
||||||
if w.stage > StageDead {
|
if w.stage > StageDead {
|
||||||
|
|||||||
Reference in New Issue
Block a user