From: Matteo Bruni <mbruni@codeweavers.com> --- dlls/winex11.drv/keyboard.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c index 1c261f66efa..e3f8d6912ec 100644 --- a/dlls/winex11.drv/keyboard.c +++ b/dlls/winex11.drv/keyboard.c @@ -942,6 +942,8 @@ static unsigned kbd_layout=0; /* index into above table of layouts */ static XkbDescRec *xkb_desc; static unsigned int xkb_current_group; +static int xkb_event_base, xkb_error_base; + /* maybe more of these scancodes should be extended? */ /* extended must be set for ALT_R, CTRL_R, INS, DEL, HOME, END, PAGE_UP, PAGE_DOWN, ARROW keys, @@ -1895,6 +1897,8 @@ BOOL X11DRV_MappingNotify( HWND dummy, XEvent *event ) void x11drv_xkb_init( Display *display ) { XkbUseExtension( display, NULL, NULL ); + XkbQueryExtension( display, 0, &xkb_event_base, &xkb_error_base, 0, 0 ); + TRACE("xkb_event_base %u, xkb_error_base %u\n", xkb_event_base, xkb_error_base); } void x11drv_xkb_init_thread( struct x11drv_thread_data *data ) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10550