mirror of
https://github.com/labwc/labwc.git
synced 2026-04-02 07:15:43 -04:00
Use existing reset_keybind function
This commit is contained in:
parent
e6c239e783
commit
2573162a4f
3 changed files with 3 additions and 4 deletions
|
|
@ -9,8 +9,6 @@ struct seat;
|
||||||
struct keyboard;
|
struct keyboard;
|
||||||
struct wlr_keyboard;
|
struct wlr_keyboard;
|
||||||
|
|
||||||
extern struct keybind *cur_keybind;
|
|
||||||
|
|
||||||
void keyboard_reset_current_keybind(void);
|
void keyboard_reset_current_keybind(void);
|
||||||
void keyboard_configure(struct seat *seat, struct wlr_keyboard *kb,
|
void keyboard_configure(struct seat *seat, struct wlr_keyboard *kb,
|
||||||
bool is_virtual);
|
bool is_virtual);
|
||||||
|
|
|
||||||
|
|
@ -708,7 +708,8 @@ actions_run(struct view *activator, struct server *server,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_keybind = NULL;
|
/* This cancels any pending on-release keybinds */
|
||||||
|
keyboard_reset_current_keybind ();
|
||||||
|
|
||||||
struct view *view;
|
struct view *view;
|
||||||
struct action *action;
|
struct action *action;
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ struct keyinfo {
|
||||||
|
|
||||||
static bool should_cancel_cycling_on_next_key_release;
|
static bool should_cancel_cycling_on_next_key_release;
|
||||||
|
|
||||||
struct keybind *cur_keybind;
|
static struct keybind *cur_keybind;
|
||||||
|
|
||||||
/* Called on --reconfigure to prevent segfault when handling release keybinds */
|
/* Called on --reconfigure to prevent segfault when handling release keybinds */
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue