Skip to content

Commit

Permalink
Fix a shadowing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonn committed Jan 5, 2025
1 parent 57c53bd commit fab7901
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/wayland/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,6 @@ static void wayland_keyboard_key(void *data, struct wl_keyboard *keyboard,
RofiViewState *state = rofi_view_get_active();
wayland_seat *self = data;

gchar *text;

wayland->last_seat = self;
self->serial = serial;

Expand All @@ -471,7 +469,7 @@ static void wayland_keyboard_key(void *data, struct wl_keyboard *keyboard,
nk_bindings_seat_handle_key(wayland->bindings_seat, NULL, keycode,
NK_BINDINGS_KEY_STATE_RELEASE);
} else if (kstate == WL_KEYBOARD_KEY_STATE_PRESSED) {
char *text = nk_bindings_seat_handle_key(
gchar *text = nk_bindings_seat_handle_key(
wayland->bindings_seat, NULL, keycode, NK_BINDINGS_KEY_STATE_PRESS);

if (self->repeat.source != NULL) {
Expand Down

0 comments on commit fab7901

Please sign in to comment.