~eliasnaur/gio-patches

gio: gesture: fix Hover by handling pointer.Cancel event v1 PROPOSED

Rajiv Kanchan: 1
 gesture: fix Hover by handling pointer.Cancel event

 1 files changed, 1 insertions(+), 1 deletions(-)
#679901 apple.yml success
#679902 freebsd.yml failed
#679903 linux.yml success
#679904 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/28669/mbox | git am -3
Learn more about email & git

[PATCH gio] gesture: fix Hover by handling pointer.Cancel event Export this patch

pointer.Cancel event is ignored, resulting in Hovered returning true
even though the pointer is no longer hovering over the region.
This change fixes it.

Signed-off-by: Rajiv Kanchan <rajiivkanchan@gmail.com>
---
 gesture/gesture.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gesture/gesture.go b/gesture/gesture.go
index 2d63963c..33201f70 100644
--- a/gesture/gesture.go
+++ b/gesture/gesture.go
@@ -51,7 +51,7 @@ func (h *Hover) Hovered(q event.Queue) bool {
			continue
		}
		switch e.Type {
		case pointer.Leave:
		case pointer.Leave, pointer.Cancel:
			if h.entered && h.pid == e.PointerID {
				h.entered = false
			}
-- 
2.25.1
gio/patches: FAILED in 19m25s

[gesture: fix Hover by handling pointer.Cancel event][0] from [Rajiv Kanchan][1]

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

✓ #679904 SUCCESS gio/patches/openbsd.yml https://builds.sr.ht/~eliasnaur/job/679904
✓ #679901 SUCCESS gio/patches/apple.yml   https://builds.sr.ht/~eliasnaur/job/679901
✓ #679903 SUCCESS gio/patches/linux.yml   https://builds.sr.ht/~eliasnaur/job/679903
✗ #679902 FAILED  gio/patches/freebsd.yml https://builds.sr.ht/~eliasnaur/job/679902
Thanks, merged.

Elias