Code style

This commit is contained in:
Simon Long 2024-04-26 11:13:25 +01:00
parent 1a9885aa52
commit 5e6f9285aa
2 changed files with 4 additions and 2 deletions

View file

@ -131,7 +131,9 @@ keybind_create(const char *keybind)
k->modifiers |= modifier; k->modifiers |= modifier;
} else { } else {
sym = xkb_keysym_from_name(symname, XKB_KEYSYM_CASE_INSENSITIVE); sym = xkb_keysym_from_name(symname, XKB_KEYSYM_CASE_INSENSITIVE);
if (!keyboard_is_modifier_key (sym)) k->mod_only = FALSE; if (!keyboard_is_modifier_key(sym)) {
k->mod_only = FALSE;
}
if (sym == XKB_KEY_NoSymbol && g_utf8_strlen(symname, -1) == 1) { if (sym == XKB_KEY_NoSymbol && g_utf8_strlen(symname, -1) == 1) {
/* /*
* xkb_keysym_from_name() only handles a legacy set of single * xkb_keysym_from_name() only handles a legacy set of single

View file

@ -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 = NULL; struct keybind *cur_keybind;
static void static void
change_vt(struct server *server, unsigned int vt) change_vt(struct server *server, unsigned int vt)