mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
Use maskEvent rather than nextEvent. Fixes rare segfaults
This commit is contained in:
@@ -166,7 +166,7 @@ eventLoop action = do
|
||||
d <- gets dpy
|
||||
(keysym,string,event) <- io $
|
||||
allocaXEvent $ \e -> do
|
||||
nextEvent d e
|
||||
maskEvent d keyPressMask e
|
||||
ev <- getEvent e
|
||||
(ks,s) <- lookupString $ asKeyEvent e
|
||||
return (ks,s,ev)
|
||||
|
Reference in New Issue
Block a user