mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
io/input: implement lazy event routing
This change defers event routing from the time the event is queued until the time Events is called. This allows a future change to execute commands immediately and to react to event order changes during a frame. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -319,7 +319,7 @@ func (w *Window) processFrame(d driver) {
|
||||
if mime, txt, ok := q.WriteClipboard(); ok {
|
||||
d.WriteClipboard(mime, txt)
|
||||
}
|
||||
if q.ReadClipboard() {
|
||||
if q.ClipboardRequested() {
|
||||
d.ReadClipboard()
|
||||
}
|
||||
oldState := w.imeState
|
||||
|
||||
Reference in New Issue
Block a user