]> git.mdlowis.com Git - proto/labwc.git/commit
keyboard: Implement key repeat for keybindings
authorJohn Lindgren <john@jlindgren.net>
Wed, 2 Nov 2022 20:37:24 +0000 (16:37 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Wed, 2 Nov 2022 21:52:33 +0000 (21:52 +0000)
commit3b55b3107080e53d2580030bd1bb0b36d1411353
tree0bb1df52f373807022da801042be5de5013ac058
parentb163045fa982e88c53d2d5236c3b8164d7a1d9bf
keyboard: Implement key repeat for keybindings

It seems that every Wayland client is expected to implement its own
key-repeat logic, rather than doing it server-side as in X11.  This
means that labwc also has to implement its own key-repeat logic for
compositor keybindings.

This is a very simplistic timer-based implementation.  It doesn't
attempt to synthesize accurate timestamps, and may lag depending
on system load, but it appears to get the job done.

v2: Use server->wl_event_loop
v3: Comments and formatting
include/labwc.h
src/keyboard.c
src/seat.c