mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
ui/app: (wayland) reset fling emulation on key press
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user