[PATCH 1/2] winex11: Remove redundant calls to update_key_state().

Zebediah Figura zfigura at codeweavers.com
Mon Jun 17 14:46:19 CDT 2019


These will not actually do anything, and were probably added by mistake,
after the similar calls to VK_CONTROL et al. above.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/winex11.drv/keyboard.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
index 3b8d91678716..b063491ad5b3 100644
--- a/dlls/winex11.drv/keyboard.c
+++ b/dlls/winex11.drv/keyboard.c
@@ -1288,8 +1288,6 @@ BOOL X11DRV_KeymapNotify( HWND hwnd, XEvent *event )
     update_key_state( keystate, VK_CONTROL, (keystate[VK_LCONTROL] | keystate[VK_RCONTROL]) & 0x80 );
     update_key_state( keystate, VK_MENU, (keystate[VK_LMENU] | keystate[VK_RMENU]) & 0x80 );
     update_key_state( keystate, VK_SHIFT, (keystate[VK_LSHIFT] | keystate[VK_RSHIFT]) & 0x80 );
-    update_key_state( keystate, VK_LWIN, keystate[VK_LWIN] & 0x80 );
-    update_key_state( keystate, VK_RWIN, keystate[VK_RWIN] & 0x80 );
     set_async_key_state( keystate );
     return TRUE;
 }
-- 
2.20.1




More information about the wine-devel mailing list