mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-11-21 20:47:19 +01:00
Fixed build for X11
This commit is contained in:
parent
7b34f47e19
commit
d2c8c5094c
@ -330,13 +330,14 @@ X11_UpdateKeymap(_THIS)
|
||||
|
||||
#if SDL_VIDEO_DRIVER_X11_HAS_XKBKEYCODETOKEYSYM
|
||||
{
|
||||
XkbStateRec state;
|
||||
|
||||
if (data->xkb) {
|
||||
X11_XkbGetUpdatedMap(data->display, XkbAllClientInfoMask, data->xkb);
|
||||
} else {
|
||||
data->xkb = X11_XkbGetMap(data->display, XkbAllClientInfoMask, XkbUseCoreKbd);
|
||||
}
|
||||
|
||||
XkbStateRec state;
|
||||
if (X11_XkbGetState(data->display, XkbUseCoreKbd, &state) == Success) {
|
||||
group = state.group;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user