diff --git a/core/linux-dist/x11.cpp b/core/linux-dist/x11.cpp index f5e491752..4f8c64b39 100644 --- a/core/linux-dist/x11.cpp +++ b/core/linux-dist/x11.cpp @@ -364,6 +364,7 @@ void input_x11_handle() kb_used--; for (int j = i; j < 5; j++) kb_key[j] = kb_key[j + 1]; + kb_key[5] = 0; } } }