mirror of
https://github.com/labwc/labwc.git
synced 2026-03-21 05:33:52 -04:00
key-state: use struct assignment
This commit is contained in:
parent
0af7bc886a
commit
c78750283f
1 changed files with 1 additions and 3 deletions
|
|
@ -79,9 +79,7 @@ key_state_pressed_sent_keycodes(void)
|
||||||
report(&bound, "before - bound:");
|
report(&bound, "before - bound:");
|
||||||
|
|
||||||
/* pressed_sent = pressed - bound */
|
/* pressed_sent = pressed - bound */
|
||||||
memcpy(pressed_sent.keys, pressed.keys,
|
pressed_sent = pressed;
|
||||||
MAX_PRESSED_KEYS * sizeof(uint32_t));
|
|
||||||
pressed_sent.nr_keys = pressed.nr_keys;
|
|
||||||
for (int i = 0; i < bound.nr_keys; ++i) {
|
for (int i = 0; i < bound.nr_keys; ++i) {
|
||||||
remove_key(&pressed_sent, bound.keys[i]);
|
remove_key(&pressed_sent, bound.keys[i]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue