]> git.mdlowis.com Git - proto/labwc.git/commitdiff
IME: rename pressed_keys to forwarded_pressed_keys
authortokyo4j <hrak1529@gmail.com>
Mon, 6 Jan 2025 07:28:37 +0000 (16:28 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 7 Jan 2025 19:31:56 +0000 (19:31 +0000)
include/input/ime.h
src/input/ime.c

index 7e7349343a418b0d35d02d39820e7184d61e577d..2840474a2700923b008229f0a10ad8aaa52de508 100644 (file)
@@ -21,7 +21,7 @@ struct input_method_relay {
        struct wl_list text_inputs; /* struct text_input.link */
        struct wlr_input_method_v2 *input_method;
        struct wlr_surface *focused_surface;
-       struct lab_set pressed_keys;
+       struct lab_set forwarded_pressed_keys;
        /*
         * Text-input which is enabled by the client and communicating with
         * input-method.
index 4a18ba20814082e4f11ea3bca0ec0aa1c87f864e..a6610ca0f1422b460fd4e4ff0eafaf79fcab089f 100644 (file)
@@ -78,7 +78,7 @@ input_method_keyboard_grab_forward_key(struct keyboard *keyboard,
         * key-press events forwarded
         */
        struct lab_set *pressed_keys =
-               &keyboard->base.seat->input_method_relay->pressed_keys;
+               &keyboard->base.seat->input_method_relay->forwarded_pressed_keys;
        if (event->state == WL_KEYBOARD_KEY_STATE_RELEASED
                        && !lab_set_contains(pressed_keys, event->keycode)) {
                return false;
@@ -345,7 +345,7 @@ handle_input_method_grab_keyboard(struct wl_listener *listener, void *data)
                        keyboard_grab, active_keyboard);
        }
 
-       relay->pressed_keys = (struct lab_set){0};
+       relay->forwarded_pressed_keys = (struct lab_set){0};
 
        relay->keyboard_grab_destroy.notify = handle_keyboard_grab_destroy;
        wl_signal_add(&keyboard_grab->events.destroy,