mirror of
https://github.com/labwc/labwc.git
synced 2026-06-17 14:33:30 -04:00
Add key state OSD for debugging
Some checks are pending
labwc.github.io / notify (push) Waiting to run
Some checks are pending
labwc.github.io / notify (push) Waiting to run
Add action `DebugToggleKeyStateIndicator` to show in the top-left corner the pressed, bound, pressed-sent keys as well as modifiers. This should help fault find issues like #2771 and #3238 Based-on: #3262 Co-authored-by: @tokyo4j
This commit is contained in:
parent
c4fd916fd3
commit
c8bb3381a4
5 changed files with 181 additions and 1 deletions
|
|
@ -139,6 +139,8 @@ handle_modifiers(struct wl_listener *listener, void *data)
|
|||
struct seat *seat = keyboard->base.seat;
|
||||
struct wlr_keyboard *wlr_keyboard = keyboard->wlr_keyboard;
|
||||
|
||||
key_state_indicator_update(seat);
|
||||
|
||||
if (server.input_mode == LAB_INPUT_STATE_MOVE) {
|
||||
/* Any change to the modifier state re-enable region snap */
|
||||
seat->region_prevent_snap = false;
|
||||
|
|
@ -622,6 +624,9 @@ handle_key(struct wl_listener *listener, void *data)
|
|||
struct seat *seat = keyboard->base.seat;
|
||||
struct wlr_keyboard_key_event *event = data;
|
||||
struct wlr_seat *wlr_seat = seat->wlr_seat;
|
||||
|
||||
key_state_indicator_update(seat);
|
||||
|
||||
idle_manager_notify_activity(seat->wlr_seat);
|
||||
|
||||
/* any new press/release cancels current keybind repeat */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue