From: Matteo Bruni <mbruni@codeweavers.com> It looks like 2eeb4d5192e808c18e5949cc1c14b51b22fee342 missed updating the hunk introduced a bit earlier by 11ef7af768427a8fe38a43351377100086357388. Fixes: 2eeb4d5192e808c18e5949cc1c14b51b22fee342 --- server/queue.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/server/queue.c b/server/queue.c index abae70fc91b..a04b53b70de 100644 --- a/server/queue.c +++ b/server/queue.c @@ -2419,24 +2419,24 @@ static int queue_keyboard_message( struct desktop *desktop, user_handle_t win, c } /* send numpad vkeys if NumLock is active */ - if ((input->kbd.vkey & KBDNUMPAD) && (desktop->keystate[VK_NUMLOCK] & 0x01) && - !(desktop->keystate[VK_SHIFT] & 0x80)) - { - switch (vkey) - { - case VK_INSERT: hook_vkey = vkey = VK_NUMPAD0; break; - case VK_END: hook_vkey = vkey = VK_NUMPAD1; break; - case VK_DOWN: hook_vkey = vkey = VK_NUMPAD2; break; - case VK_NEXT: hook_vkey = vkey = VK_NUMPAD3; break; - case VK_LEFT: hook_vkey = vkey = VK_NUMPAD4; break; - case VK_CLEAR: hook_vkey = vkey = VK_NUMPAD5; break; - case VK_RIGHT: hook_vkey = vkey = VK_NUMPAD6; break; - case VK_HOME: hook_vkey = vkey = VK_NUMPAD7; break; - case VK_UP: hook_vkey = vkey = VK_NUMPAD8; break; - case VK_PRIOR: hook_vkey = vkey = VK_NUMPAD9; break; - case VK_DELETE: hook_vkey = vkey = VK_DECIMAL; break; - default: break; - } + if ((input->kbd.vkey & KBDNUMPAD) && (desktop_shm->keystate[VK_NUMLOCK] & 0x01) && + !(desktop_shm->keystate[VK_SHIFT] & 0x80)) + { + switch (vkey) + { + case VK_INSERT: hook_vkey = vkey = VK_NUMPAD0; break; + case VK_END: hook_vkey = vkey = VK_NUMPAD1; break; + case VK_DOWN: hook_vkey = vkey = VK_NUMPAD2; break; + case VK_NEXT: hook_vkey = vkey = VK_NUMPAD3; break; + case VK_LEFT: hook_vkey = vkey = VK_NUMPAD4; break; + case VK_CLEAR: hook_vkey = vkey = VK_NUMPAD5; break; + case VK_RIGHT: hook_vkey = vkey = VK_NUMPAD6; break; + case VK_HOME: hook_vkey = vkey = VK_NUMPAD7; break; + case VK_UP: hook_vkey = vkey = VK_NUMPAD8; break; + case VK_PRIOR: hook_vkey = vkey = VK_NUMPAD9; break; + case VK_DELETE: hook_vkey = vkey = VK_DECIMAL; break; + default: break; + } } if (origin == IMO_HARDWARE) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10963