Skip to content

Commit

Permalink
Fix -Wunused-variable warning in src/video/x11/SDL_x11events.c
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Jun 21, 2024
1 parent 53eff7f commit cf267e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/x11/SDL_x11events.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,11 +884,13 @@ void X11_HandleKeyEvent(SDL_VideoDevice *_this, SDL_WindowData *windowdata, SDL_
text[0] = '\0';

if (SDL_TextInputActive()) {
#if defined(HAVE_IBUS_IBUS_H) || defined(HAVE_FCITX)
/* Save the original keycode for dead keys, which are filtered out by
the XFilterEvent() call below.
*/
int orig_event_type = xevent->type;
KeyCode orig_keycode = xevent->xkey.keycode;
#endif

/* filter events catches XIM events and sends them to the correct handler */
if (X11_XFilterEvent(xevent, None)) {
Expand Down

0 comments on commit cf267e4

Please sign in to comment.