~eliasnaur/gio-patches

gio: io/router: avoid event copy for filtered events in pointerQueue v1 PROPOSED

~pierrec
~pierrec: 1
 io/router: avoid event copy for filtered events in pointerQueue

 1 files changed, 6 insertions(+), 6 deletions(-)
#437415 apple.yml success
#437416 freebsd.yml success
#437417 linux.yml failed
#437418 openbsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eliasnaur/gio-patches/patches/20496/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gio] io/router: avoid event copy for filtered events in pointerQueue Export this patch

~pierrec
From: pierre <pierre.curto@gmail.com>

Signed-off-by: pierre <pierre.curto@gmail.com>
---
 io/router/pointer.go | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/io/router/pointer.go b/io/router/pointer.go
index ab9348b..dd66037 100644
--- a/io/router/pointer.go
+++ b/io/router/pointer.go
@@ -333,18 +333,18 @@ func (q *pointerQueue) deliverEvent(p *pointerInfo, events *handlerEvents, e poi
	foremost := true
	for _, k := range p.handlers {
		h := q.handlers[k]
		if e.Type&h.types == 0 {
			continue
		}
		e := e
		if p.pressed && len(p.handlers) == 1 {
			e.Priority = pointer.Grabbed
		} else if foremost {
			e.Priority = pointer.Foremost
		}

		if e.Type&h.types != 0 {
			e.Position = q.invTransform(h.area, e.Position)
			foremost = false
			events.Add(k, e)
		}
		e.Position = q.invTransform(h.area, e.Position)
		foremost = false
		events.Add(k, e)
	}
}

-- 
2.30.1
builds.sr.ht
gio/patches: FAILED in 27m13s

[io/router: avoid event copy for filtered events in pointerQueue][0] from [~pierrec][1]

[0]: https://lists.sr.ht/~eliasnaur/gio-patches/patches/20496
[1]: mailto:pierre.curto@gmail.com

✓ #437418 SUCCESS gio/patches/openbsd.yml https://builds.sr.ht/~eliasnaur/job/437418
✓ #437416 SUCCESS gio/patches/freebsd.yml https://builds.sr.ht/~eliasnaur/job/437416
✓ #437415 SUCCESS gio/patches/apple.yml   https://builds.sr.ht/~eliasnaur/job/437415
✗ #437417 FAILED  gio/patches/linux.yml   https://builds.sr.ht/~eliasnaur/job/437417
Thanks, merged.