From 37d5b947eb574da0688d6203f2dcd78b08dc0c9e Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 13 Sep 2019 21:13:02 +0200 Subject: [PATCH] ui/app: (wayland) reset fling emulation on key press Signed-off-by: Elias Naur --- ui/app/os_wayland.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/app/os_wayland.go b/ui/app/os_wayland.go index e4e430a0..2f0001a1 100644 --- a/ui/app/os_wayland.go +++ b/ui/app/os_wayland.go @@ -702,6 +702,7 @@ func gio_onKeyboardKey(data unsafe.Pointer, keyboard *C.struct_wl_keyboard, seri t := time.Duration(timestamp) * time.Millisecond conn.repeat.Stop(t) w := winMap[keyboard] + w.resetFling() if state != C.WL_KEYBOARD_KEY_STATE_PRESSED || conn.xkbMap == nil || conn.xkbState == nil || conn.xkbCompState == nil { return }