If i'm not mistaken, the glitch was happening mostly when I press two buttons at the same time. W+D for example. And also if I switch to another workspace in my window manager.