mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +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
|
t := time.Duration(timestamp) * time.Millisecond
|
||||||
conn.repeat.Stop(t)
|
conn.repeat.Stop(t)
|
||||||
w := winMap[keyboard]
|
w := winMap[keyboard]
|
||||||
|
w.resetFling()
|
||||||
if state != C.WL_KEYBOARD_KEY_STATE_PRESSED || conn.xkbMap == nil || conn.xkbState == nil || conn.xkbCompState == nil {
|
if state != C.WL_KEYBOARD_KEY_STATE_PRESSED || conn.xkbMap == nil || conn.xkbState == nil || conn.xkbCompState == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user