keybindings: Reduce variable scope
We can't remove the variable entirely because g_array_append_val() is a macro that assumes a variable as parameter. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4050>
This commit is contained in:
parent
db81ba4d5b
commit
be819d9983
@ -387,14 +387,13 @@ get_keycodes_for_keysym (MetaKeyBindingManager *keys,
|
||||
{
|
||||
unsigned int i;
|
||||
GArray *keycodes;
|
||||
int keycode;
|
||||
|
||||
keycodes = g_array_new (FALSE, FALSE, sizeof (xkb_keysym_t));
|
||||
|
||||
/* Special-case: Fake mutter keysym */
|
||||
if (keysym == META_KEY_ABOVE_TAB)
|
||||
{
|
||||
keycode = KEY_GRAVE + 8;
|
||||
int keycode = KEY_GRAVE + 8;
|
||||
g_array_append_val (keycodes, keycode);
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user