mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
key-state: rename function for consistency
...with the equivalent function that returns the number of pressed keys. s/key_state_nr_keys/key_state_nr_bound_keys/
This commit is contained in:
parent
3f0cf9c3a8
commit
2e8820cf6a
3 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ void key_state_set_pressed(uint32_t keycode, bool ispressed);
|
||||||
void key_state_store_pressed_keys_as_bound(void);
|
void key_state_store_pressed_keys_as_bound(void);
|
||||||
bool key_state_corresponding_press_event_was_bound(uint32_t keycode);
|
bool key_state_corresponding_press_event_was_bound(uint32_t keycode);
|
||||||
void key_state_bound_key_remove(uint32_t keycode);
|
void key_state_bound_key_remove(uint32_t keycode);
|
||||||
int key_state_nr_keys(void);
|
int key_state_nr_bound_keys(void);
|
||||||
int key_state_nr_pressed_keys(void);
|
int key_state_nr_pressed_keys(void);
|
||||||
|
|
||||||
#endif /* LABWC_KEY_STATE_H */
|
#endif /* LABWC_KEY_STATE_H */
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ key_state_bound_key_remove(uint32_t keycode)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
key_state_nr_keys(void)
|
key_state_nr_bound_keys(void)
|
||||||
{
|
{
|
||||||
return bound.nr_keys;
|
return bound.nr_keys;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ keyboard_modifiers_notify(struct wl_listener *listener, void *data)
|
||||||
|| seat->workspace_osd_shown_by_modifier) {
|
|| seat->workspace_osd_shown_by_modifier) {
|
||||||
if (!keyboard_any_modifiers_pressed(wlr_keyboard)) {
|
if (!keyboard_any_modifiers_pressed(wlr_keyboard)) {
|
||||||
if (server->osd_state.cycle_view) {
|
if (server->osd_state.cycle_view) {
|
||||||
if (key_state_nr_keys()) {
|
if (key_state_nr_bound_keys()) {
|
||||||
should_cancel_cycling_on_next_key_release = true;
|
should_cancel_cycling_on_next_key_release = true;
|
||||||
} else {
|
} else {
|
||||||
end_cycling(server);
|
end_cycling(server);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue