Since XNextEvent halts until there's a new event, it should be put on another thread. Key repeats should also be turned off when there's more than 0 keys being pressed, and turned back on after all keys are released as not to interfere with regular desktop usage.
Since XNextEvent halts until there's a new event, it should be put on another thread. Key repeats should also be turned off when there's more than 0 keys being pressed, and turned back on after all keys are released as not to interfere with regular desktop usage.