Comment 30 for bug 251709

Revision history for this message
Michael Ryan (mpryan) wrote :

With a small modification to 02_raw_keyboard_support.dpatch, this problem goes away for me. If g_grab_keyboard is checked before doing a XGrabKeyboard or XUngrabKeyboard, everything works correctly. Someone using an international keyboard setup should verify as I only use QWERTY English.

315c315
< + if ( g_focused && g_grab_keyboard && g_modeswitch_down ) XUngrabKeyboard(g_display, CurrentTime);
---
> + if ( g_focused && g_modeswitch_down ) XUngrabKeyboard(g_display, CurrentTime);
327c327
< + if ( g_focused && g_grab_keyboard && !g_modeswitch_down ) XGrabKeyboard(g_display, g_wnd, True, GrabModeAsync, GrabModeAsync, CurrentTime);
---
> + if ( g_focused && !g_modeswitch_down ) XGrabKeyboard(g_display, g_wnd, True, GrabModeAsync, GrabModeAsync, CurrentTime);