Inputs not working after putting the PC to sleep

I have this issue when I play a game on retroarch, and put my PC on sleeping mode, the inputs stop working. Everytime I have to close and open retroarch, when I go to sleeping mode. Before I updated retroarch to the latest version this didn’t happen. So what gives?